From b661d50b6930b92758871672061a78dc2b4f8f67 Mon Sep 17 00:00:00 2001 From: Jeremie Roy Date: Wed, 24 Apr 2013 12:23:47 +0200 Subject: [PATCH] Fix bug involving assert a function call. --- examples/common/font/font_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/common/font/font_manager.cpp b/examples/common/font/font_manager.cpp index 5193778a..7e5adf85 100644 --- a/examples/common/font/font_manager.cpp +++ b/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;