Changeset 365 for trunk/src/gl/gl_device.cc
- Timestamp:
- 05/16/15 17:40:16 (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:global-ignores
set to
vs2012
vs2013
gmake
gmake-clang
-
Property
svn:global-ignores
set to
-
trunk/src/gl/gl_device.cc
r364 r365 41 41 if (!image) 42 42 { 43 NV_LOG ( LOG_ERROR, "Image file " << filename <<" not found!" );43 NV_LOG_ERROR( "Image file ", filename, " not found!" ); 44 44 return nullptr; 45 45 } … … 59 59 if ( !image ) 60 60 { 61 NV_LOG ( LOG_ERROR,"Image binary data cannot be loaded found!" );61 NV_LOG_ERROR( "Image binary data cannot be loaded found!" ); 62 62 return nullptr; 63 63 } … … 228 228 if ( fatal ) 229 229 { 230 NV_LOG ( LOG_ERROR, "Uniform '" << name <<"' not found in program!" );230 NV_LOG_ERROR( "Uniform '", name, "' not found in program!" ); 231 231 NV_THROW( runtime_error, ( "Uniform '"+name+"' not found!" ) ); 232 232 } … … 247 247 if ( fatal ) 248 248 { 249 NV_LOG ( LOG_ERROR, "Attribute '" << name <<"' not found in program!" );250 NV_THROW( runtime_error, ( "Attribute '"+ name+"' not found!" ) );249 NV_LOG_ERROR( "Attribute '", name, "' not found in program!" ); 250 NV_THROW( runtime_error, ( "Attribute '"+ name + "' not found!" ) ); 251 251 } 252 252 } … … 279 279 glGetProgramInfoLog( p->glid, buffer_size, &length, buffer ); 280 280 281 NV_LOG ( LOG_INFO, "Program #" << p->glid <<(status == GL_FALSE ? " failed to compile!" : " compiled successfully.") );281 NV_LOG_INFO( "Program #", p->glid, (status == GL_FALSE ? " failed to compile!" : " compiled successfully.") ); 282 282 283 283 if ( length > 0 ) 284 284 { 285 NV_LOG ( LOG_INFO, "Program #" << p->glid << " log: " <<buffer );285 NV_LOG_INFO( "Program #", p->glid, " log: ", buffer ); 286 286 } 287 287 … … 297 297 { 298 298 glGetProgramInfoLog( p->glid, buffer_size, &length, buffer ); 299 NV_LOG ( LOG_ERROR, "Program #" << p->glid << " validation error : " <<buffer );299 NV_LOG_ERROR( "Program #", p->glid, " validation error : ", buffer ); 300 300 return false; 301 301 } … … 418 418 if ( compile_ok == 0 ) 419 419 { 420 NV_LOG ( LOG_ERROR, "Shader #" << glid << " error: " <<buffer );420 NV_LOG_ERROR( "Shader #", glid, " error: ", buffer ); 421 421 } 422 422 else 423 423 { 424 NV_LOG ( LOG_INFO, "Shader #" << glid << " compiled successfully: " <<buffer );424 NV_LOG_INFO( "Shader #", glid, " compiled successfully: ", buffer ); 425 425 } 426 426 } 427 427 else 428 428 { 429 NV_LOG ( LOG_INFO, "Shader #" << glid <<" compiled successfully." );429 NV_LOG_INFO( "Shader #", glid, " compiled successfully." ); 430 430 } 431 431 return compile_ok != 0;
Note: See TracChangeset
for help on using the changeset viewer.