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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user