From c7ce686bf03f72e1a24c1c6b34f85415e5a6e432 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Fri, 10 Dec 2021 14:20:52 -0500 Subject: [PATCH] filter gl debug message about ubos from callback --- src/GLDebug.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/GLDebug.h b/src/GLDebug.h index 254cd37..6de41ac 100644 --- a/src/GLDebug.h +++ b/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)