Added more flexibility into the State::checkGLErrors() method, allowing calling code to pass in two strings.
Improved the StateSet::compileGLObjects() usage of checkGLErrors() to make the warning reports more meaningful.
This commit is contained in:
@@ -870,7 +870,7 @@ class OSG_EXPORT State : public Referenced
|
||||
/** Get whether and how often OpenGL errors should be checked for.*/
|
||||
CheckForGLErrors getCheckForGLErrors() const { return _checkGLErrors; }
|
||||
|
||||
bool checkGLErrors(const char* str) const;
|
||||
bool checkGLErrors(const char* str1=0, const char* str2=0) const;
|
||||
bool checkGLErrors(StateAttribute::GLMode mode) const;
|
||||
bool checkGLErrors(const StateAttribute* attribute) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user