[vlc-devel] [PATCH] opengl: fix win32 build

Rafaël Carré funman at videolan.org
Tue Oct 30 11:09:25 CET 2012


it is not clear how glew(Active)ClientTexture should be acceeded,
do not use the broken glew 'shortcut' for these functions
---
 modules/video_output/opengl.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/video_output/opengl.h b/modules/video_output/opengl.h
index f3e9372..a513ef3 100644
--- a/modules/video_output/opengl.h
+++ b/modules/video_output/opengl.h
@@ -55,6 +55,10 @@
 # else
 #  ifdef WIN32
 #   include <GL/glew.h>
+#   undef glClientActiveTexture
+#   undef glActiveTexture
+    PFNGLACTIVETEXTUREPROC glActiveTexture;
+    PFNGLCLIENTACTIVETEXTUREPROC glClientActiveTexture;
 #  endif
 #  include <GL/gl.h>
 # endif
-- 
1.7.10.4



More information about the vlc-devel mailing list