Changeset 10611 for OpenSceneGraph/trunk/src/osg/State.cpp
- Timestamp:
- 10/07/09 21:42:32 (4 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osg/State.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osg/State.cpp
r10601 r10611 983 983 if (errorNo!=GL_NO_ERROR) 984 984 { 985 #ifdef OSG_GLU_AVAILABLE 985 986 const char* error = (char*)gluErrorString(errorNo); 986 987 if (error) osg::notify(WARN)<<"Warning: detected OpenGL error '" << error<<"'"; 987 988 else osg::notify(WARN)<<"Warning: detected OpenGL error number 0x" << std::hex << errorNo << std::dec; 988 989 #else 990 osg::notify(WARN)<<"Warning: detected OpenGL error number 0x" << std::hex << errorNo << std::dec; 991 #endif 989 992 if (str) osg::notify(WARN)<<" at "<<str<< std::endl; 990 993 else osg::notify(WARN)<<" in osg::State."<< std::endl; … … 1000 1003 if (errorNo!=GL_NO_ERROR) 1001 1004 { 1005 #ifdef OSG_GLU_AVAILABLE 1002 1006 const char* error = (char*)gluErrorString(errorNo); 1003 1007 if (error) osg::notify(WARN)<<"Warning: detected OpenGL error '"<< error <<"' after applying GLMode 0x"<<hex<<mode<<dec<< std::endl; 1004 1008 else osg::notify(WARN)<<"Warning: detected OpenGL error number 0x"<< std::hex << errorNo <<" after applying GLMode 0x"<<hex<<mode<<dec<< std::endl; 1005 1009 #else 1010 osg::notify(WARN)<<"Warning: detected OpenGL error number 0x"<< std::hex << errorNo <<" after applying GLMode 0x"<<hex<<mode<<dec<< std::endl; 1011 #endif 1006 1012 return true; 1007 1013 } … … 1014 1020 if (errorNo!=GL_NO_ERROR) 1015 1021 { 1022 #ifdef OSG_GLU_AVAILABLE 1016 1023 const char* error = (char*)gluErrorString(errorNo); 1017 1024 if (error) osg::notify(WARN)<<"Warning: detected OpenGL error '"<< error <<"' after applying attribute "<<attribute->className()<<" "<<attribute<< std::endl; 1018 1025 else osg::notify(WARN)<<"Warning: detected OpenGL error number 0x"<< std::hex << errorNo <<" after applying attribute "<<attribute->className()<<" "<<attribute<< std::dec << std::endl; 1026 #else 1027 osg::notify(WARN)<<"Warning: detected OpenGL error number 0x"<< std::hex << errorNo <<" after applying attribute "<<attribute->className()<<" "<<attribute<< std::dec << std::endl; 1028 #endif 1019 1029 1020 1030 return true;
