1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

OpenGLContext: Fix signature of DEBUGPROC

This commit is contained in:
reuk 2023-02-16 11:01:50 +00:00
parent 629a3ca14b
commit ae45bb4c35
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -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