diff --git a/imgui-SFML.cpp b/imgui-SFML.cpp index 2197d4b..d09e157 100644 --- a/imgui-SFML.cpp +++ b/imgui-SFML.cpp @@ -810,7 +810,7 @@ ImVec2 getDownRightAbsolute(const sf::FloatRect& rect) { } ImTextureID convertGLTextureHandleToImTextureID(GLuint glTextureHandle) { - ImTextureID textureID = nullptr; + ImTextureID textureID = (ImTextureID)nullptr; std::memcpy(&textureID, &glTextureHandle, sizeof(GLuint)); return textureID; }