Browse Source

filter gl debug message about ubos from callback

main
cinnaboot 5 years ago
parent
commit
c7ce686bf0
  1. 7
      src/GLDebug.h

7
src/GLDebug.h

@ -58,7 +58,12 @@ openglDebugCallback(GLenum source,
const GLchar* message,
const void* userParam)
{
std::cout << ((type == GL_DEBUG_TYPE_ERROR) ? "Error" : "Debug")
// NOTE: filter out notification about using video memory for buffer object
if (id == 131185)
return;
std::cout << "message id: " << id << ", "
<< ((type == GL_DEBUG_TYPE_ERROR) ? "Error" : "Debug")
<< (type == GL_DEBUG_TYPE_ERROR ? "** GL Error **" : "")
<< ", type: " << glEnumToString(type)
<< ", severity: " << glEnumToString(severity)

Loading…
Cancel
Save