Skip to content

Crashes after rendering a texture to ImGui.Image and ImGui.ImageButton #3

@RulHolos

Description

@RulHolos

After loading a texture with Raylib.LoadTexture(), which Raylib loads correctly, my program crashes when rendering the frame with ImGui.Image(texture.Id, new(24, 24)) and ImGui.ImageButton(some_id, texture.Id, new(24, 24)), in ImGuiRaylib.cs at the method ImGuiRenderTriangles.

Image

I'm not sure if this is a bug or if I am doing something wrong.
For the record, I'm getting my texture ID with : texture.Id, which I do think is the correct way to do it.

Creating a ImTextureID struct from the texture causes the same crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions