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)
|
static void GLAPIENTRY MessageCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void* userParam)
|
||||||
{
|
{
|
||||||
(void)source;
|
(void)source;
|
||||||
|
(void)type;
|
||||||
(void)id;
|
(void)id;
|
||||||
(void)severity;
|
|
||||||
(void)length;
|
(void)length;
|
||||||
(void)userParam;
|
(void)userParam;
|
||||||
|
|
||||||
if (type == GL_DEBUG_TYPE_ERROR)
|
if (severity != GL_DEBUG_SEVERITY_NOTIFICATION)
|
||||||
printf("OpenGL error: %s\n", message);
|
printf("OpenGL debug: %s\n", message);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GLuint CompileShader(const char *vertex_shader_source, const char *fragment_shader_source)
|
static GLuint CompileShader(const char *vertex_shader_source, const char *fragment_shader_source)
|
||||||
|
|
Loading…
Add table
Reference in a new issue