r728 - trunk/code/renderer

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Apr 27 10:48:35 EDT 2006


Author: thilo
Date: 2006-04-27 10:48:35 -0400 (Thu, 27 Apr 2006)
New Revision: 728

Modified:
   trunk/code/renderer/qgl.h
Log:
Fix for skybox blacklines bug on non-SDL compilations.


Modified: trunk/code/renderer/qgl.h
===================================================================
--- trunk/code/renderer/qgl.h	2006-04-27 13:39:41 UTC (rev 727)
+++ trunk/code/renderer/qgl.h	2006-04-27 14:48:35 UTC (rev 728)
@@ -96,6 +96,7 @@
 ** 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 @@
 #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);




More information about the quake3-commits mailing list