aboutsummaryrefslogtreecommitdiff
path: root/games/tenebrae
diff options
context:
space:
mode:
authorDejan Lesjak <lesi@FreeBSD.org>2004-12-14 23:17:28 +0000
committerDejan Lesjak <lesi@FreeBSD.org>2004-12-14 23:17:28 +0000
commiteca539f5a164e48c9c7e730586baf5d1cedeb23c (patch)
tree21f4578c8db6071bb48c43619bc89bb94adc9b88 /games/tenebrae
parent5abc420df3f28f3eb33490f989e593b0570705f9 (diff)
downloadports-eca539f5a164e48c9c7e730586baf5d1cedeb23c.tar.gz
ports-eca539f5a164e48c9c7e730586baf5d1cedeb23c.zip
Fix problems when building against X.Org 6.8.1 GL.
PR: ports/75073 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=124035
Diffstat (limited to 'games/tenebrae')
-rw-r--r--games/tenebrae/files/patch-glquake.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/games/tenebrae/files/patch-glquake.h b/games/tenebrae/files/patch-glquake.h
new file mode 100644
index 000000000000..97250817e1a2
--- /dev/null
+++ b/games/tenebrae/files/patch-glquake.h
@@ -0,0 +1,49 @@
+
+$FreeBSD$
+
+--- glquake.h.orig
++++ glquake.h
+@@ -419,8 +419,8 @@
+ void R_TranslatePlayerSkin (int playernum);
+ void GL_Bind (int texnum);
+
+-#ifndef _WIN32
+-#define APIENTRY /* */
++#ifndef APIENTRY
++#define APIENTRY
+ #endif
+
+ #if !defined (__APPLE__) && !defined (MACOSX)
+@@ -470,6 +470,9 @@
+ // ARB_texture_compression defines
+ #define GL_COMPRESSED_RGBA_ARB 0x84EE
+
++#ifndef GL_ATI_separate_stencil
++#define GL_ATI_separate_stencil 1
++
+ #define GL_STENCIL_BACK_FUNC_ATI 0x8800
+ #define GL_STENCIL_BACK_FAIL_ATI 0x8801
+ #define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802
+@@ -478,6 +481,8 @@
+ typedef void (APIENTRY *PFNGLSTENCILOPSEPARATEATIPROC)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+ typedef void (APIENTRY *PFNGLSTENCILFUNCSEPARATEATIPROC)(GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
+
++#endif
++
+ extern PFNGLSTENCILOPSEPARATEATIPROC qglStencilOpSeparateATI;
+ extern PFNGLSTENCILFUNCSEPARATEATIPROC qglStencilFuncSeparateATI;
+
+@@ -1134,8 +1139,13 @@
+ // <AWE> There are some diffs with the function parameters. wgl stuff not present with MacOS X. -DC- and SDL
+ #if defined (__APPLE__) || defined (MACOSX) || defined(SDL) || defined (__glx__)
+
++#ifndef GL_APPLE_vertex_array_range
++#define GL_APPLE_vertex_array_range 1
++
+ typedef void (APIENTRY * PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, const GLvoid *pointer);
+ typedef void (APIENTRY * PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei size, const GLvoid *pointer);
++
++#endif
+
+ extern PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC qglFlushVertexArrayRangeAPPLE;
+ extern PFNGLVERTEXARRAYRANGEAPPLEPROC qglVertexArrayRangeAPPLE;