Changeset 365 for trunk/src/gl
- Timestamp:
- 05/16/15 17:40:16 (10 years ago)
- Location:
- trunk
- Files:
-
- 3 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_context.cc
r364 r365 8 8 #include "nv/lib/gl.hh" 9 9 #include "nv/gl/gl_device.hh" 10 #include "nv/core/logger.hh" 10 11 11 12 using namespace nv; … … 168 169 switch ( result ) 169 170 { 170 case GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT : NV_LOG ( LOG_ERROR,"gl_context::check : Framebuffer incomplete attachment!" ); break;171 case GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT : NV_LOG ( LOG_ERROR,"gl_context::check : Framebuffer missing attachment!" ); break;172 case GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS : NV_LOG ( LOG_ERROR,"gl_context::check : Framebuffer incomplete dimensions!" ); break;173 case GL_FRAMEBUFFER_INCOMPLETE_FORMATS : NV_LOG ( LOG_ERROR,"gl_context::check : Framebuffer incomplete formats!" ); break;174 case GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER : NV_LOG ( LOG_ERROR,"gl_context::check : Framebuffer incomplete draw buffer!" ); break;175 case GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER : NV_LOG ( LOG_ERROR,"gl_context::check : Framebuffer incomplete read buffer!" ); break;176 case GL_FRAMEBUFFER_UNSUPPORTED : NV_LOG ( LOG_ERROR,"gl_context::check : Framebuffer format combination unsupported!" ); break;177 default : NV_LOG( LOG_ERROR, "gl_context::check : Unknown Framebuffer error! (" << result <<")" ); break;171 case GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT : NV_LOG_ERROR( "gl_context::check : Framebuffer incomplete attachment!" ); break; 172 case GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT : NV_LOG_ERROR( "gl_context::check : Framebuffer missing attachment!" ); break; 173 case GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS : NV_LOG_ERROR( "gl_context::check : Framebuffer incomplete dimensions!" ); break; 174 case GL_FRAMEBUFFER_INCOMPLETE_FORMATS : NV_LOG_ERROR( "gl_context::check : Framebuffer incomplete formats!" ); break; 175 case GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER : NV_LOG_ERROR( "gl_context::check : Framebuffer incomplete draw buffer!" ); break; 176 case GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER : NV_LOG_ERROR( "gl_context::check : Framebuffer incomplete read buffer!" ); break; 177 case GL_FRAMEBUFFER_UNSUPPORTED : NV_LOG_ERROR( "gl_context::check : Framebuffer format combination unsupported!" ); break; 178 default: NV_LOG_ERROR( "gl_context::check : Unknown Framebuffer error! (", result, ")" ); break; 178 179 } 179 180 } 180 181 else 181 182 { 182 NV_LOG ( LOG_ERROR,"gl_context::check : Framebuffer extensions not loaded!" );183 NV_LOG_ERROR( "gl_context::check : Framebuffer extensions not loaded!" ); 183 184 } 184 185 return false; -
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.