[quake3-commits] r2332 - trunk/code/rend2

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Oct 25 23:56:45 EDT 2012


Author: ztm
Date: 2012-10-25 23:56:45 -0400 (Thu, 25 Oct 2012)
New Revision: 2332

Modified:
   trunk/code/rend2/tr_backend.c
   trunk/code/rend2/tr_bsp.c
   trunk/code/rend2/tr_shade.c
Log:
Fix gcc warnings in Rend2.

Modified: trunk/code/rend2/tr_backend.c
===================================================================
--- trunk/code/rend2/tr_backend.c	2012-10-26 03:25:24 UTC (rev 2331)
+++ trunk/code/rend2/tr_backend.c	2012-10-26 03:56:45 UTC (rev 2332)
@@ -763,7 +763,7 @@
 					{
 						depth[0] = 0;
 						depth[1] = 0.3f;
- 						qglDepthRange (0, 0.3);
+ 						qglDepthRange (depth[0], depth[1]);
 	 				}
 #endif
 				}

Modified: trunk/code/rend2/tr_bsp.c
===================================================================
--- trunk/code/rend2/tr_bsp.c	2012-10-26 03:25:24 UTC (rev 2331)
+++ trunk/code/rend2/tr_bsp.c	2012-10-26 03:56:45 UTC (rev 2332)
@@ -2172,7 +2172,7 @@
 		{
 			//ri.Printf(PRINT_ALL, "Found!\n");
 			if (size != sizeof(float) * 3 * (verts->filelen / sizeof(*dv)))
-				ri.Error(ERR_DROP, "Bad size for %s (%i, expected %i)!\n", filename, size, (int)(sizeof(float)) * 3 * (verts->filelen / sizeof(*dv)));
+				ri.Error(ERR_DROP, "Bad size for %s (%i, expected %i)!\n", filename, size, (int)((sizeof(float)) * 3 * (verts->filelen / sizeof(*dv))));
 		}
 	}
 

Modified: trunk/code/rend2/tr_shade.c
===================================================================
--- trunk/code/rend2/tr_shade.c	2012-10-26 03:25:24 UTC (rev 2331)
+++ trunk/code/rend2/tr_shade.c	2012-10-26 03:56:45 UTC (rev 2332)
@@ -1342,7 +1342,8 @@
 			for ( stage2 = stage + 1; stage2 < MAX_SHADER_STAGES; stage2++ )
 			{
 				shaderStage_t *pStage2 = input->xstages[stage2];
-				unsigned int srcBlendBits, dstBlendBits;
+				unsigned int srcBlendBits;
+				//unsigned int dstBlendBits;
 
 				if ( !pStage2 )
 				{
@@ -1350,7 +1351,7 @@
 				}
 
 				srcBlendBits = pStage2->stateBits & GLS_SRCBLEND_BITS;
-				dstBlendBits = pStage2->stateBits & GLS_DSTBLEND_BITS;
+				//dstBlendBits = pStage2->stateBits & GLS_DSTBLEND_BITS;
 
 				if (srcBlendBits == GLS_SRCBLEND_DST_COLOR)
 				{



More information about the quake3-commits mailing list