Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions imgui-SFML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ bool ImageButton(const sf::Texture& texture, const int framePadding, const sf::C

bool ImageButton(const sf::Texture& texture, const sf::Vector2f& size, const int framePadding,
const sf::Color& bgColor, const sf::Color& tintColor) {
IM_UNUSED(bgColor);
ImTextureID textureID = convertGLTextureHandleToImTextureID(texture.getNativeHandle());

return ImGui::ImageButton(textureID, ImVec2(size.x, size.y), ImVec2(0, 0), ImVec2(1, 1),
Expand All @@ -604,6 +605,7 @@ bool ImageButton(const sf::RenderTexture& texture, const int framePadding, const

bool ImageButton(const sf::RenderTexture& texture, const sf::Vector2f& size, const int framePadding,
const sf::Color& bgColor, const sf::Color& tintColor) {
IM_UNUSED(bgColor);
ImTextureID textureID =
convertGLTextureHandleToImTextureID(texture.getTexture().getNativeHandle());

Expand Down