Skip to content

Cannot create multiple buttons with same texture? #5533

@Krish2882005

Description

@Krish2882005

Hello

I am creating a texture which loads an icon like so

SDL_Texture* Texture = Load("SomePath.png");

I then create two buttons with the same texture

ImGui::ImageButton(Texture, SomeSize);

ImGui::ImageButton(Texture, SomeSize);

When doing this, only the first button works... Isn't the SDL_Texture pointer the id for the image button?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions