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

Rémi Denis-Courmont remi at remlab.net
Tue Oct 30 12:08:06 CET 2012


Fine with me.

On Tue, 30 Oct 2012 11:09:25 +0100, Rafaël Carré <funman at videolan.org>
wrote:
> 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

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list