Explorar el Código

Fix bug involving assert a function call.

Jeremie Roy hace 12 años
padre
commit
b661d50b69
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      examples/common/font/font_manager.cpp

+ 3 - 1
examples/common/font/font_manager.cpp

@@ -471,7 +471,9 @@ void FontManager::init()
 
 	m_blackGlyph.m_width=3;
 	m_blackGlyph.m_height=3;
-	BX_CHECK( addBitmap(m_blackGlyph, buffer), "unable to add white glyph" );
+	bool addResult = addBitmap(m_blackGlyph, buffer);
+	BX_UNUSED(addResult);
+	BX_CHECK( addResult , "unable to add white glyph" );
 	//make sure the black glyph doesn't bleed
 	
 	/*int16_t texUnit = 65535 / m_textureWidth;