mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
Fix problems when building against X.Org 6.8.1 GL.
PR: ports/75073 Submitted by: maintainer
This commit is contained in:
parent
5abc420df3
commit
eca539f5a1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124035
1 changed files with 49 additions and 0 deletions
49
games/tenebrae/files/patch-glquake.h
Normal file
49
games/tenebrae/files/patch-glquake.h
Normal file
|
@ -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;
|
Loading…
Add table
Reference in a new issue