Print more OpenGL debug messages
This commit is contained in:
parent
c27d15dddc
commit
a69a4cd608
1 changed files with 3 additions and 3 deletions
|
@ -174,13 +174,13 @@ void main() \
|
|||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue