mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Expose OpenGL debugging as a normal setting
This commit is contained in:
parent
ecfe9c5c2f
commit
7a6ca85081
11 changed files with 49 additions and 95 deletions
|
@ -1642,7 +1642,9 @@ void COpenGLDriver::setMaterial(const SMaterial &material)
|
|||
//! prints error if an error happened.
|
||||
bool COpenGLDriver::testGLError(int code)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if (!Params.DriverDebug)
|
||||
return false;
|
||||
|
||||
GLenum g = glGetError();
|
||||
switch (g) {
|
||||
case GL_NO_ERROR:
|
||||
|
@ -1674,11 +1676,7 @@ bool COpenGLDriver::testGLError(int code)
|
|||
break;
|
||||
#endif
|
||||
};
|
||||
// _IRR_DEBUG_BREAK_IF(true);
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
//! sets the needed renderstates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue