Date: Tue, 14 Dec 2004 23:42:54 +0300 (MSK) From: Igor Pokrovsky <ip@doom.homeunix.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/75073: Update port: games/tenebrae fix problems with xorg Message-ID: <200412142042.iBEKgscN003501@doom.homeunix.org> Resent-Message-ID: <200412142050.iBEKoRUv059578@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 75073 >Category: ports >Synopsis: Update port: games/tenebrae fix problems with xorg >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Dec 14 20:50:27 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Igor Pokrovsky >Release: FreeBSD 4.10-STABLE i386 >Organization: >Environment: System: FreeBSD doom.homeunix.org 4.10-STABLE FreeBSD 4.10-STABLE #0: Mon Nov 22 09:16:46 MSK 2004 root@doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL i386 >Description: Should fix problems when building against xorg GL. New files: files/patch-glquake.h >How-To-Repeat: >Fix: --- tenebrae.diff begins here --- diff -ruN /usr/ports/games/tenebrae/files/patch-glquake.h tenebrae/files/patch-glquake.h --- /usr/ports/games/tenebrae/files/patch-glquake.h Thu Jan 1 03:00:00 1970 +++ tenebrae/files/patch-glquake.h Tue Dec 14 23:35:22 2004 @@ -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; --- tenebrae.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412142042.iBEKgscN003501>