From e06a63482e6f2c13397e13c65c655ed37e244faf Mon Sep 17 00:00:00 2001 From: Alex Krieg Date: Thu, 24 Oct 2024 16:34:43 +0200 Subject: [PATCH] Update imgui-SFML.cpp casting nullptr to ImTextureID to prevent MSVC Err. C2440 --- imgui-SFML.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }