Skip to content

Commit 9eda42f

Browse files
NewYaroslavChrisThrasher
authored andcommitted
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.
1 parent 08d409a commit 9eda42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui-SFML.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ void RenderDrawLists(ImDrawData* draw_data)
10401040
(int)(clip_rect.w - clip_rect.y));
10411041

10421042
// Bind texture, Draw
1043-
const GLuint textureHandle = convertImTextureIDToGLTextureHandle(pcmd->TextureId);
1043+
const GLuint textureHandle = convertImTextureIDToGLTextureHandle(pcmd->GetTexID());
10441044
glBindTexture(GL_TEXTURE_2D, textureHandle);
10451045
glDrawElements(GL_TRIANGLES,
10461046
(GLsizei)pcmd->ElemCount,

0 commit comments

Comments
 (0)