1
0
Fork 0
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:
sfan5 2024-04-12 11:38:30 +02:00
parent ecfe9c5c2f
commit 7a6ca85081
11 changed files with 49 additions and 95 deletions

View file

@ -529,7 +529,8 @@ bool CEGLManager::swapBuffers()
bool CEGLManager::testEGLError()
{
#if defined(EGL_VERSION_1_0) && defined(_DEBUG)
if (!Params.DriverDebug)
return false;
EGLint status = eglGetError();
switch (status) {
@ -582,9 +583,6 @@ bool CEGLManager::testEGLError()
};
return true;
#else
return false;
#endif
}
}