From f6836ff37fd361010829621f610837686aa00944 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 12 Dec 2023 18:24:30 +0100 Subject: [PATCH] Misc: Rework debug display of texture id in Metrics window (amend) (#7090) Amend 96b5b17 --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 1368b9a09..7d6627579 100644 --- a/imgui.cpp +++ b/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);