ref: a69a4cd608e4e99c548aa24183df8966eaa7d8c9
parent: c27d15dddcc8e7a6dff20d2d29cf84658977db96
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Aug 20 08:40:37 EDT 2019
Print more OpenGL debug messages
--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -174,13 +174,13 @@
static void GLAPIENTRY MessageCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void* userParam)
{
(void)source;
+ (void)type;
(void)id;
- (void)severity;
(void)length;
(void)userParam;
- if (type == GL_DEBUG_TYPE_ERROR)
- printf("OpenGL error: %s\n", message);
+ if (severity != GL_DEBUG_SEVERITY_NOTIFICATION)
+ printf("OpenGL debug: %s\n", message);
}
static GLuint CompileShader(const char *vertex_shader_source, const char *fragment_shader_source)