[quake3-commits] r2248 - trunk/code/renderer

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon May 7 19:06:00 EDT 2012


Author: ztm
Date: 2012-05-07 19:06:00 -0400 (Mon, 07 May 2012)
New Revision: 2248

Modified:
   trunk/code/renderer/tr_shader.c
Log:
#5503 - SIGSEGV with r_vertexlight 1 in missionpack (patch by Serge Belyshev).

Modified: trunk/code/renderer/tr_shader.c
===================================================================
--- trunk/code/renderer/tr_shader.c	2012-05-07 22:47:19 UTC (rev 2247)
+++ trunk/code/renderer/tr_shader.c	2012-05-07 23:06:00 UTC (rev 2248)
@@ -627,7 +627,7 @@
 			else if ( !Q_stricmp( token, "$lightmap" ) )
 			{
 				stage->bundle[0].isLightmap = qtrue;
-				if ( shader.lightmapIndex < 0 ) {
+				if ( shader.lightmapIndex < 0 || !tr.lightmaps ) {
 					stage->bundle[0].image[0] = tr.whiteImage;
 				} else {
 					stage->bundle[0].image[0] = tr.lightmaps[shader.lightmapIndex];



More information about the quake3-commits mailing list