16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 00:49:19 +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

@@ -687,7 +687,7 @@ void opengl33_renderer::draw_debug_ui()
ImGui::SetNextWindowSize(ImVec2S(400, 400));
if (ImGui::Begin("Pickbuffer") && m_pick_tex) {
ImGui::Image(reinterpret_cast<void *>(m_pick_tex->id), ImGui::GetContentRegionAvail(), ImVec2(0, 1.0), ImVec2(1.0, 0));
ImGui::Image((ImTextureID)(intptr_t)(m_pick_tex->id), ImGui::GetContentRegionAvail(), ImVec2(0, 1.0), ImVec2(1.0, 0));
}
ImGui::End();
}