]> git.sesse.net Git - vlc/commitdiff
OpenGL: fix compilation / missing glXGetProcAddressARB
authorFrancois Cartegnie <fcvlcdev@free.fr>
Sun, 12 Jun 2011 14:18:07 +0000 (16:18 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sun, 12 Jun 2011 15:38:30 +0000 (17:38 +0200)
According to glxext.h, glXGetProcAddressARB also requires
GLX_GLXEXT_PROTOTYPES (works with all implementations ?)

modules/video_output/xcb/glx.c

index f81c9fc73fd0bbcdbf7bf368aee14018813b71c8..7ccca311bad9acdbdc7d8268a2b3968498147324 100644 (file)
@@ -470,7 +470,7 @@ static void SwapBuffers (vlc_gl_t *gl)
 static void *GetProcAddress (vlc_gl_t *gl, const char *name)
 {
     (void)gl;
-#ifdef GLX_ARB_get_proc_address
+#if defined(GLX_ARB_get_proc_address) && defined(GLX_GLXEXT_PROTOTYPES)
     return glXGetProcAddressARB ((const GLubyte *)name);
 #else
     return NULL;