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)); }