Browse Source

Misc: Rework debug display of texture id in Metrics window (amend) (#7090)

Amend 96b5b17
pull/7143/head
ocornut 11 months ago
parent
commit
f6836ff37f
  1. 2
      imgui.cpp

2
imgui.cpp

@ -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);

Loading…
Cancel
Save