Suppress performance GL debug messages by default

This commit is contained in:
baldurk
2014-11-15 14:23:37 +00:00
parent b00cffddbd
commit c44fca55a3
+1 -1
View File
@@ -1376,7 +1376,7 @@ vector<DebugMessage> WrappedOpenGL::Serialise_DebugMessages()
void WrappedOpenGL::DebugSnoop(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message)
{
if(type != eGL_DEBUG_TYPE_OTHER || severity != eGL_DEBUG_SEVERITY_NOTIFICATION)
if(type != eGL_DEBUG_TYPE_PERFORMANCE && (type != eGL_DEBUG_TYPE_OTHER || severity != eGL_DEBUG_SEVERITY_NOTIFICATION))
{
RDCLOG("Got a Debug message from %hs, type %hs, ID %d, severity %hs:\n'%hs'",
ToStr::Get(source).c_str(), ToStr::Get(type).c_str(), id, ToStr::Get(severity).c_str(), message);