Browse Source

OpenGLContext: Fix signature of DEBUGPROC

v7.0.9
reuk 2 years ago
parent
commit
ae45bb4c35
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_opengl/opengl/juce_OpenGLContext.cpp

+ 1
- 1
modules/juce_opengl/opengl/juce_OpenGLContext.cpp View File

@@ -637,7 +637,7 @@ public:
if (getOpenGLVersion() >= Version { 4, 3 } && glDebugMessageCallback != nullptr) if (getOpenGLVersion() >= Version { 4, 3 } && glDebugMessageCallback != nullptr)
{ {
glEnable (GL_DEBUG_OUTPUT); glEnable (GL_DEBUG_OUTPUT);
glDebugMessageCallback ([] (GLenum type, GLenum, GLuint, GLenum severity, GLsizei, const GLchar* message, const void*)
glDebugMessageCallback ([] (GLenum, GLenum type, GLuint, GLenum severity, GLsizei, const GLchar* message, const void*)
{ {
// This may reiterate issues that are also flagged by JUCE_CHECK_OPENGL_ERROR. // This may reiterate issues that are also flagged by JUCE_CHECK_OPENGL_ERROR.
// The advantage of this callback is that it will catch *all* errors, even if we // The advantage of this callback is that it will catch *all* errors, even if we


Loading…
Cancel
Save