From a37225b81e04c161a3bf652fab67ff635e823c19 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Wed, 17 Aug 2016 21:25:03 +0200 Subject: [PATCH] Don't debug break on notifications --- src/gl/system/gl_debug.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gl/system/gl_debug.cpp b/src/gl/system/gl_debug.cpp index 5c3e60276..984893ddc 100644 --- a/src/gl/system/gl_debug.cpp +++ b/src/gl/system/gl_debug.cpp @@ -186,11 +186,14 @@ void FGLDebug::DebugCallback(GLenum source, GLenum type, GLuint id, GLenum sever { PrintMessage(source, type, id, severity, length, message); + if (severity != GL_DEBUG_SEVERITY_NOTIFICATION) + { #ifdef _MSC_VER - DebugBreak(); + DebugBreak(); #else - raise(SIGTRAP); + raise(SIGTRAP); #endif + } } //-----------------------------------------------------------------------------