mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-15 06:20:41 +00:00
Suppress performance GL debug messages by default
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user