Skip to content

Commit

Permalink
Fix ImTextureID type
Browse files Browse the repository at this point in the history
  • Loading branch information
pifopi authored Oct 15, 2024
1 parent f1f1109 commit 560baa9
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 @@ -894,7 +894,7 @@ SpriteTextureData getSpriteTextureData(const sf::Sprite& sprite)

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

0 comments on commit 560baa9

Please sign in to comment.