From 148f2afa0bad1f84db46ac5c46f883e5ec45f5c4 Mon Sep 17 00:00:00 2001 From: thilo Date: Thu, 27 Apr 2006 14:48:35 +0000 Subject: Fix for skybox blacklines bug on non-SDL compilations. git-svn-id: svn://svn.icculus.org/quake3/trunk@728 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/renderer/qgl.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/renderer/qgl.h b/code/renderer/qgl.h index 75547a8..2df33d8 100644 --- a/code/renderer/qgl.h +++ b/code/renderer/qgl.h @@ -96,6 +96,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ** multitexture extension definitions */ #if !defined(__sun) + #define GL_ACTIVE_TEXTURE_ARB 0x84E0 #define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 #define GL_MAX_ACTIVE_TEXTURES_ARB 0x84E2 @@ -104,10 +105,18 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define GL_TEXTURE1_ARB 0x84C1 #define GL_TEXTURE2_ARB 0x84C2 #define GL_TEXTURE3_ARB 0x84C3 + #else + #define GL_MAX_ACTIVE_TEXTURES_ARB 0x84E2 + #endif /* defined(__sun) */ +// define for skyboxes without black seams on non SDL-versions. +#if !defined(GL_VERSION_1_2) && !defined(GL_CLAMP_TO_EDGE) + #define GL_CLAMP_TO_EDGE 0x812F +#endif + // NOTE: some Linux platforms would need those prototypes #if defined(MACOS_X) || ( defined(__sun) && defined(__sparc) ) typedef void (APIENTRY * PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); -- cgit v1.2.3