Don't debug break on notifications

This commit is contained in:
Magnus Norddahl 2016-08-17 21:25:03 +02:00
parent 0c2db5447c
commit a37225b81e
1 changed files with 5 additions and 2 deletions

View File

@ -186,11 +186,14 @@ void FGLDebug::DebugCallback(GLenum source, GLenum type, GLuint id, GLenum sever
{ {
PrintMessage(source, type, id, severity, length, message); PrintMessage(source, type, id, severity, length, message);
if (severity != GL_DEBUG_SEVERITY_NOTIFICATION)
{
#ifdef _MSC_VER #ifdef _MSC_VER
DebugBreak(); DebugBreak();
#else #else
raise(SIGTRAP); raise(SIGTRAP);
#endif #endif
}
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------