[vlc-commits] OpenGL: fix compilation / missing glXGetProcAddressARB

Francois Cartegnie git at videolan.org
Sun Jun 12 17:39:56 CEST 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Jun 12 16:18:07 2011 +0200| [9abb97d0e8d9ecfcb7ae2a9684e0e6f72ac19aac] | committer: Francois Cartegnie

OpenGL: fix compilation / missing glXGetProcAddressARB

According to glxext.h, glXGetProcAddressARB also requires
GLX_GLXEXT_PROTOTYPES (works with all implementations ?)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9abb97d0e8d9ecfcb7ae2a9684e0e6f72ac19aac
---

 modules/video_output/xcb/glx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index f81c9fc..7ccca31 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -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;



More information about the vlc-commits mailing list