From adef7787337a2f63f301ef48782ba017e5f6b08f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20=C3=96zyal=C3=A7=C4=B1n?= <124049441+SadeAli@users.noreply.github.com> Date: Tue, 10 Sep 2024 12:15:49 +0300 Subject: [PATCH] Fix compile error for GL_VERSION 43+ caused by shadowing of debugMessageCallback Fixed a compile error that occurred when using "GL_VERSION = 43" and higher due to the shadowing of the "debugMessageCallback" function. The function was declared both in the general OpenGL module and in the OpenGL 4.3+ version-specific modules, causing a conflict. Removed the redundant declaration from the general module, as this callback is only relevant for OpenGL 4.3 and above. Compiling versions lower than 4.3 works without this fix. Tested the solution with GL_VERSION = [31, 32, 33, 40, 41, 42, 43, 44, 45, 46]. No issues detected. --- libraries/opengl.c3l/opengl.c3i | 1 - 1 file changed, 1 deletion(-) diff --git a/libraries/opengl.c3l/opengl.c3i b/libraries/opengl.c3l/opengl.c3i index b5e643b..14dc28b 100644 --- a/libraries/opengl.c3l/opengl.c3i +++ b/libraries/opengl.c3l/opengl.c3i @@ -22,4 +22,3 @@ distinct GLclampd = double; distinct GLhalf = ushort; distinct GLsync = uptr; def GLDebugProc = fn void(GLenum source,GLenum type,CUInt id,GLenum severity,usz length,ZString message, void *userParam); -fn void debugMessageCallback(GLDebugProc callback, void* userParam) @extern("glDebugMessageCallback");