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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Oct 30 05:00:59 EDT 2012


Author: ztm
Date: 2012-10-30 05:00:58 -0400 (Tue, 30 Oct 2012)
New Revision: 2345

Modified:
   trunk/code/rend2/tr_main.c
Log:
Clean up getting pshadowMap in Rend2's R_DecomposeSort().

Modified: trunk/code/rend2/tr_main.c
===================================================================
--- trunk/code/rend2/tr_main.c	2012-10-30 07:43:44 UTC (rev 2344)
+++ trunk/code/rend2/tr_main.c	2012-10-30 09:00:58 UTC (rev 2345)
@@ -1868,7 +1868,7 @@
 	*fogNum = ( sort >> QSORT_FOGNUM_SHIFT ) & 31;
 	*shader = tr.sortedShaders[ ( sort >> QSORT_SHADERNUM_SHIFT ) & (MAX_SHADERS-1) ];
 	*entityNum = ( sort >> QSORT_REFENTITYNUM_SHIFT ) & REFENTITYNUM_MASK;
-	*pshadowMap = (sort & 2) >> 1;
+	*pshadowMap = (sort >> QSORT_PSHADOW_SHIFT ) & 1;
 	*dlightMap = sort & 1;
 }
 



More information about the quake3-commits mailing list