mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-26 11:50:59 +00:00
Don't write log for spammy unimportant debug messages
This commit is contained in:
@@ -850,8 +850,11 @@ void WrappedOpenGL::FinishCapture()
|
||||
|
||||
void WrappedOpenGL::DebugSnoop(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message)
|
||||
{
|
||||
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);
|
||||
if(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);
|
||||
}
|
||||
|
||||
if(m_RealDebugFunc)
|
||||
m_RealDebugFunc(source, type, id, severity, length, message, m_RealDebugFuncParam);
|
||||
|
||||
Reference in New Issue
Block a user