summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.cpp b/src/image.cpp
index 091a128..ba67859 100644
--- a/src/image.cpp
+++ b/src/image.cpp
@@ -80,7 +80,7 @@ void ts_load_images() {
return (void*)(intptr_t)tex;
};
ifd::FileDialog::Instance().DeleteTexture = [](void* tex) {
- GLuint texID = (GLuint)tex;
+ GLuint texID = (GLuint)(intptr_t)tex;
glDeleteTextures(1, &texID);
};
} \ No newline at end of file