Swapped order in IsFilteredByDebugLevel

This commit is contained in:
Magnus Norddahl 2016-08-18 02:21:53 +02:00
parent f75b6d8c5d
commit 4241026f1c

View file

@ -168,9 +168,9 @@ bool FGLDebug::IsFilteredByDebugLevel(GLenum severity)
int severityLevel = 0;
switch (severity)
{
case GL_DEBUG_SEVERITY_LOW: severityLevel = 1; break;
case GL_DEBUG_SEVERITY_HIGH: severityLevel = 1; break;
case GL_DEBUG_SEVERITY_MEDIUM: severityLevel = 2; break;
case GL_DEBUG_SEVERITY_HIGH: severityLevel = 3; break;
case GL_DEBUG_SEVERITY_LOW: severityLevel = 3; break;
case GL_DEBUG_SEVERITY_NOTIFICATION: severityLevel = 4; break;
}
return severityLevel >= (int)gl_debug_level;