ref: 4769397c7ac45c074e88208dcefd585c7c8f3c63
parent: 24dcd35522a7bbc2bd419e91c7672a1fb53118b7
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Jul 31 19:03:32 EDT 2019
Clean up OpenGL error callback print
--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -121,8 +121,14 @@
static void GLAPIENTRY MessageCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void* userParam)
{
+ (void)source;
+ (void)id;
+ (void)severity;
+ (void)length;
+ (void)userParam;
+
if (type == GL_DEBUG_TYPE_ERROR)
- printf("GL CALLBACK: %s type = 0x%x, severity = 0x%x, message = %s\n", ( type == GL_DEBUG_TYPE_ERROR ? "** GL ERROR **" : "" ), type, severity, message);
+ printf("OpenGL error: %s\n", message);
}
static GLuint CompileShader(const char *vertex_shader_source, const char *fragment_shader_source)