Przeglądaj źródła

Fix VisualStudio warning

Miodrag Milanovic 10 lat temu
rodzic
commit
161d5a475e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/renderer_gl.cpp

+ 1 - 1
src/renderer_gl.cpp

@@ -3921,7 +3921,7 @@ namespace bgfx
 						&& bx::findIdentifierMatch(code, s_ARB_shader_texture_lod)
 						;
 
-					bool usesIUsamplers = bx::findIdentifierMatch(code, s_uisamplers);
+					bool usesIUsamplers = !!bx::findIdentifierMatch(code, s_uisamplers);
 
 					uint32_t version = usesIUsamplers ? 130 : (usesTextureLod ? 120 : 0);