|
@@ -23,6 +23,8 @@
|
|
#undef far
|
|
#undef far
|
|
#undef near
|
|
#undef near
|
|
|
|
|
|
|
|
+/* #define SHOW_ALL_GL_MESSAGES */
|
|
|
|
+
|
|
#ifdef _DEBUG
|
|
#ifdef _DEBUG
|
|
|
|
|
|
static void APIENTRY gl_debug_proc(
|
|
static void APIENTRY gl_debug_proc(
|
|
@@ -34,6 +36,15 @@ static void APIENTRY gl_debug_proc(
|
|
|
|
|
|
char *source_str, *type_str, *severity_str;
|
|
char *source_str, *type_str, *severity_str;
|
|
|
|
|
|
|
|
+/* frames can get a bit too much spam with irrelevant/insignificant opengl
|
|
|
|
+ * debug messages */
|
|
|
|
+#ifndef SHOW_ALL_GL_MESSAGES
|
|
|
|
+ if (type > GL_DEBUG_TYPE_PORTABILITY &&
|
|
|
|
+ severity != GL_DEBUG_SEVERITY_HIGH) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+
|
|
switch(source) {
|
|
switch(source) {
|
|
case GL_DEBUG_SOURCE_API:
|
|
case GL_DEBUG_SOURCE_API:
|
|
source_str = "API"; break;
|
|
source_str = "API"; break;
|