16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

Use texture id casting recommended by ImGui wiki

This commit is contained in:
docentYT
2026-05-12 18:04:50 +02:00
parent 3707a7845b
commit e95e00a2e2
5 changed files with 7 additions and 7 deletions

View File

@@ -113,7 +113,7 @@ void ui::cameraview_panel::render_contents()
}
ImVec2 surface_size = ImGui::GetContentRegionAvail();
ImGui::Image(reinterpret_cast<void*>(texture->id), surface_size);
ImGui::Image((ImTextureID)(intptr_t)(texture->id), surface_size);
}
void ui::cameraview_panel::capture_func()