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,