From 4241026f1c86881cfcff005888442a0036dc7c06 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Thu, 18 Aug 2016 02:21:53 +0200 Subject: [PATCH] Swapped order in IsFilteredByDebugLevel --- src/gl/system/gl_debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl/system/gl_debug.cpp b/src/gl/system/gl_debug.cpp index d4a0b2fcf..af0704f77 100644 --- a/src/gl/system/gl_debug.cpp +++ b/src/gl/system/gl_debug.cpp @@ -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;