r146 - trunk/code/renderer

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Oct 6 11:33:54 EDT 2005


Author: tma
Date: 2005-10-06 11:33:54 -0400 (Thu, 06 Oct 2005)
New Revision: 146

Modified:
   trunk/code/renderer/tr_shader.c
Log:
* ATI skybox bug fix


Modified: trunk/code/renderer/tr_shader.c
===================================================================
--- trunk/code/renderer/tr_shader.c	2005-10-06 15:16:12 UTC (rev 145)
+++ trunk/code/renderer/tr_shader.c	2005-10-06 15:33:54 UTC (rev 146)
@@ -1230,7 +1230,11 @@
 		for (i=0 ; i<6 ; i++) {
 			Com_sprintf( pathname, sizeof(pathname), "%s_%s.tga"
 				, token, suf[i] );
+#ifdef GL_CLAMP_TO_EDGE
+			shader.sky.outerbox[i] = R_FindImageFile( ( char * ) pathname, qtrue, qtrue, GL_CLAMP_TO_EDGE );
+#else
 			shader.sky.outerbox[i] = R_FindImageFile( ( char * ) pathname, qtrue, qtrue, GL_CLAMP );
+#endif
 			if ( !shader.sky.outerbox[i] ) {
 				shader.sky.outerbox[i] = tr.defaultImage;
 			}




More information about the quake3-commits mailing list