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

Amend 96b5b17
This commit is contained in:
ocornut 2023-12-12 18:24:30 +01:00
parent 07dbd46ddd
commit f6836ff37f
1 changed files with 1 additions and 1 deletions

View File

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