Ver código fonte

Textures: amend to please static analyzer.

ocornut 3 semanas atrás
pai
commit
d981b33dd0
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      imgui.cpp

+ 1 - 1
imgui.cpp

@@ -16134,7 +16134,7 @@ static const char* FormatTextureRefForDebugDisplay(char* buf, int buf_size, ImTe
     char* buf_end = buf + buf_size;
     if (tex_ref._TexData != NULL)
         buf_p += ImFormatString(buf_p, buf_end - buf_p, "#%03d: ", tex_ref._TexData->UniqueID);
-    buf_p += ImFormatString(buf_p, buf_end - buf_p, "0x%X", ImGui::DebugTextureIDToU64(tex_ref.GetTexID()));
+    ImFormatString(buf_p, buf_end - buf_p, "0x%X", ImGui::DebugTextureIDToU64(tex_ref.GetTexID()));
     return buf;
 }