Skip to content

Commit 687a72f

Browse files
committed
Convert GLuint to void* using intptr_t #62
1 parent bb40f24 commit 687a72f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/application/source/glfw/entry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ ImTextureID Application_CreateTexture(const void* data, int width, int height)
6363
texture.Width = width;
6464
texture.Height = height;
6565

66-
return reinterpret_cast<ImTextureID>(texture.TextureID);
66+
return reinterpret_cast<ImTextureID>(static_cast<std::intptr_t>(texture.TextureID));
6767
}
6868

6969
static std::vector<ImTexture>::iterator Application_FindTexture(ImTextureID texture)

0 commit comments

Comments
 (0)