From ae45bb4c35c9cf1fbb57a2a576e0d98e74d75167 Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 16 Feb 2023 11:01:50 +0000 Subject: [PATCH] OpenGLContext: Fix signature of DEBUGPROC --- modules/juce_opengl/opengl/juce_OpenGLContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp index af3a354fd7..caea4df965 100644 --- a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp +++ b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp @@ -637,7 +637,7 @@ public: if (getOpenGLVersion() >= Version { 4, 3 } && glDebugMessageCallback != nullptr) { 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. // The advantage of this callback is that it will catch *all* errors, even if we