Skip to content

Commit

Permalink
Misc: Rework debug display of texture id in Metrics window (amend) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Dec 12, 2023
1 parent 07dbd46 commit f6836ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14472,7 +14472,7 @@ void ImGui::DebugNodeColumns(ImGuiOldColumns* columns)
TreePop();
}

static void FormatTextureIDForDebugDisplay(char* buf, int buf_size, const ImTextureID& tex_id)
static void FormatTextureIDForDebugDisplay(char* buf, int buf_size, ImTextureID tex_id)
{
if (sizeof(tex_id) >= sizeof(void*))
ImFormatString(buf, buf_size, "0x%p", (void*)*(intptr_t*)(void*)&tex_id);
Expand Down

0 comments on commit f6836ff

Please sign in to comment.