Skip to content

Commit

Permalink
Fix conversion error with new ImGui version
Browse files Browse the repository at this point in the history
  • Loading branch information
KROIA authored and ChrisThrasher committed Oct 24, 2024
1 parent bf9023d commit 251e53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui-SFML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ ImVec2 getDownRightAbsolute(const sf::FloatRect& rect) {
}

ImTextureID convertGLTextureHandleToImTextureID(GLuint glTextureHandle) {
ImTextureID textureID = nullptr;
ImTextureID textureID{};
std::memcpy(&textureID, &glTextureHandle, sizeof(GLuint));
return textureID;
}
Expand Down

0 comments on commit 251e53d

Please sign in to comment.