Skip to content

Commit 31f0e50

Browse files
committed
disable debug context for non 4.3 context
1 parent 4e9fbe9 commit 31f0e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Renderer/raylib/rlgl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2243,7 +2243,7 @@ static void GLAPIENTRY rlDebugMessageCallback(GLenum source, GLenum type, GLuint
22432243
void rlglInit(int width, int height)
22442244
{
22452245
// Enable OpenGL debug context if required
2246-
#if defined(RLGL_ENABLE_OPENGL_DEBUG_CONTEXT) //&& defined(GRAPHICS_API_OPENGL_43)
2246+
#if defined(RLGL_ENABLE_OPENGL_DEBUG_CONTEXT) && defined(GRAPHICS_API_OPENGL_43)
22472247
if ((glDebugMessageCallback != NULL) && (glDebugMessageControl != NULL))
22482248
{
22492249
glDebugMessageCallback(rlDebugMessageCallback, 0);

0 commit comments

Comments
 (0)