1
1

GLDebug: Fix severity check

The check was reversed, leading to less errors being reported.
This commit is contained in:
2022-02-15 00:02:31 +01:00
parent 19b21563d6
commit b744081f83

View File

@@ -128,7 +128,7 @@ static void APIENTRY debug_callback(GLenum UNUSED(source),
break;
}
if (((LOG.type->flag & CLG_FLAG_USE) && (LOG.type->level >= clog_severity))) {
if (((LOG.type->flag & CLG_FLAG_USE) && (LOG.type->level <= clog_severity))) {
CLG_logf(LOG.type, clog_severity, debug_groups, "", "%s", message);
if (severity == GL_DEBUG_SEVERITY_HIGH) {
/* Focus on error message. */