Changeset 3559 for trunk/packages/vizservers/nanovis/Trace.cpp
- Timestamp:
- Mar 22, 2013, 7:45:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/Trace.cpp
r3492 r3559 54 54 PrintFBOStatus(GLenum status, const char *prefix) 55 55 { 56 #ifdef WANT_TRACE 56 57 const char *mesg; 58 57 59 switch(status) { 58 60 case GL_FRAMEBUFFER_COMPLETE_EXT: … … 78 80 } 79 81 TRACE("FB Status: %s: %s", prefix, mesg); 82 #endif /*WANT_TRACE*/ 80 83 } 81 84 … … 83 86 CheckGL(const char *prefix) 84 87 { 85 const char *mesg;86 88 GLenum status = (GLenum)glGetError(); 89 if (status == GL_NO_ERROR) { 90 return true; 91 } 92 #ifdef WANT_TRACE 93 const char *mesg; 94 87 95 switch(status) { 88 case GL_NO_ERROR:89 return true;90 96 case GL_INVALID_ENUM: 91 97 mesg = "GL_INVALID_ENUM"; break; … … 107 113 } 108 114 TRACE("GL Status: %s: %s", prefix, mesg); 115 #endif 109 116 return false; 110 117 }
Note: See TracChangeset
for help on using the changeset viewer.