summaryrefslogtreecommitdiff
path: root/community/xvba-video-open/fix-build-with-glext.h-version-85.patch
blob: f3cabce50a7a53a917f556fbc350e88215b8f006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -ru xvba-video-0.8.0/src/utils_glx.h xvba-video-0.8.0.patched/src/utils_glx.h
--- xvba-video-0.8.0/src/utils_glx.h	2011-06-14 13:07:13.000000000 +0200
+++ xvba-video-0.8.0.patched/src/utils_glx.h	2013-02-17 10:53:34.589818821 +0100
@@ -25,6 +25,13 @@
 #include <GL/glext.h>
 #include <GL/glx.h>
 
+#if GL_GLEXT_VERSION >= 85
+/* XXX: PFNGLMULTITEXCOORD2FPROC got out of the GL_VERSION_1_3_DEPRECATED
+   block and is not defined if GL_VERSION_1_3 is defined in <GL/gl.h>
+   Redefine the type here as an interim solution */
+typedef void (*PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
+#endif
+
 #ifndef GL_FRAMEBUFFER_BINDING
 #define GL_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING_EXT
 #endif