fixed crash when glDebugCallbackARB is available but glDebugCallback isn't
authorJohn Tsiombikas <nuclear@mutantstargoat.com>
Wed, 23 May 2018 02:27:37 +0000 (05:27 +0300)
committerJohn Tsiombikas <nuclear@mutantstargoat.com>
Wed, 23 May 2018 02:27:37 +0000 (05:27 +0300)
src/opengl.c

index a7962c7..206f21c 100644 (file)
@@ -21,7 +21,7 @@ int init_opengl(void)
 #ifndef NDEBUG
        if(glcaps.debug) {
                info_log("Installing OpenGL debug callback\n");
-               glDebugMessageCallback(gldebug_logger, 0);
+               glDebugMessageCallbackARB(gldebug_logger, 0);
        }
 #endif