From 4c7cf22d06dc1f23800bed3e4ac0d653ce6048ec Mon Sep 17 00:00:00 2001 From: docentYT <63965954+docentYT@users.noreply.github.com> Date: Tue, 12 May 2026 00:18:11 +0200 Subject: [PATCH] Use texture id casting recommended by ImGui wiki --- application/scenarioloaderuilayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/scenarioloaderuilayer.cpp b/application/scenarioloaderuilayer.cpp index 7b53e543..b43c4fbd 100644 --- a/application/scenarioloaderuilayer.cpp +++ b/application/scenarioloaderuilayer.cpp @@ -202,7 +202,7 @@ void scenarioloader_ui::render_() // Gradient at the lower half of the screen if (!Global.NvRenderer) { - const auto tex = reinterpret_cast(m_gradient_overlay_tex); + const ImTextureID tex = (ImTextureID)(intptr_t)m_gradient_overlay_tex; // See https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples#example-for-opengl-users draw_list->AddImage(tex, ImVec2(0, Global.window_size.y / 2), ImVec2(Global.window_size.x, Global.window_size.y), ImVec2(0, 0), ImVec2(1, 1)); }