From 9eda42f9bd492516bcf6fe1281cb3f05f0591f52 Mon Sep 17 00:00:00 2001 From: Aster Seker Date: Sat, 5 Jul 2025 02:45:44 +0300 Subject: [PATCH] Replace direct TextureId access with GetTexID() In ImGui v1.92.0 and newer, direct access to ImDrawCmd::TextureId is deprecated and replaced by the GetTexID() accessor. --- imgui-SFML.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui-SFML.cpp b/imgui-SFML.cpp index 0672e93..70c9b18 100644 --- a/imgui-SFML.cpp +++ b/imgui-SFML.cpp @@ -1040,7 +1040,7 @@ void RenderDrawLists(ImDrawData* draw_data) (int)(clip_rect.w - clip_rect.y)); // Bind texture, Draw - const GLuint textureHandle = convertImTextureIDToGLTextureHandle(pcmd->TextureId); + const GLuint textureHandle = convertImTextureIDToGLTextureHandle(pcmd->GetTexID()); glBindTexture(GL_TEXTURE_2D, textureHandle); glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount,