Бранимир Караџић 1 год назад
Родитель
Сommit
8dfef838fc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      examples/common/imgui/imgui.cpp

+ 1 - 1
examples/common/imgui/imgui.cpp

@@ -139,7 +139,7 @@ struct OcornutImguiContext
 					bgfx::TextureHandle th = m_texture;
 					bgfx::ProgramHandle program = m_program;
 
-					if (NULL != cmd->TextureId)
+					if (ImU64(0) != cmd->TextureId)
 					{
 						union { ImTextureID ptr; struct { bgfx::TextureHandle handle; uint8_t flags; uint8_t mip; } s; } texture = { cmd->TextureId };