Changeset 367 for trunk/src/gfx/texture_font.cc
- Timestamp:
- 05/16/15 23:12:22 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gfx/texture_font.cc
r365 r367 6 6 #include "nv/gfx/texture_font.hh" 7 7 8 #include <sstream>9 #include <stdexcept>10 8 #include "nv/lib/freetype2.hh" 11 9 #include "nv/core/logging.hh" … … 126 124 if ( error ) 127 125 { 128 std::stringstream error_msg; 129 error_msg << "FT_Error while loading glyphs, error: " 130 << error << " code: " << c; 131 NV_THROW( std::runtime_error, error_msg.str().c_str() ); 126 NV_LOG_ERROR( "FT_Error while loading glyphs, error: ", error, " code: ", c ); 127 NV_THROW( std::runtime_error, "FT_Error while loading glyphs" ); 132 128 } 133 129 … … 144 140 if ( r.pos.x < 0 ) 145 141 { 146 std::stringstream error_msg; 147 error_msg << "Atlas full while loading glyphs, " 148 << "r.pos.x: " << r.pos.x << " code: " 149 << c; 150 NV_THROW( std::runtime_error, error_msg.str().c_str() ); 142 NV_LOG_ERROR( "Atlas full while loading glyphs, r.pos.x: ", r.pos.x, " code: ", c ); 143 NV_THROW( std::runtime_error, "Atlas full while loading glyphs" ); 151 144 } 152 145 if (depth == 4)
Note: See TracChangeset
for help on using the changeset viewer.