mark two shader checks nullable

This commit is contained in:
Rudolf Polzer 2011-12-09 17:24:33 +01:00
parent b104009ba6
commit 48a8cb1d67
3 changed files with 2 additions and 4 deletions

View File

@ -783,7 +783,7 @@ void CreateMapFogs( void )
/* set up fog */
fog = &mapFogs[ numMapFogs++ ];
fog->si = ShaderInfoForShader( globalFog );
fog->si = ShaderInfoForShaderNull( globalFog );
if( fog->si == NULL )
Error( "Invalid shader \"%s\" referenced trying to add global fog", globalFog );
fog->brush = NULL;

View File

@ -1094,7 +1094,7 @@ static void PopulateWithPicoModel( int castShadows, picoModel_t *model, m4x4_t t
shader = PicoGetSurfaceShader( surface );
if( shader == NULL )
continue;
ti.si = ShaderInfoForShader( PicoGetShaderName( shader ) );
ti.si = ShaderInfoForShaderNull( PicoGetShaderName( shader ) );
if( ti.si == NULL )
continue;

View File

@ -3193,8 +3193,6 @@ void SetupBrushesFlags( int mask_any, int test_any, int mask_all, int test_all )
allCompileFlags &= si->compileFlags;
}
Sys_FPrintf( SYS_VRB, "flags: %d (all: %d)\n", compileFlags, allCompileFlags );
/* determine if this brush is opaque to light */
if( (compileFlags & mask_any) == test_any && (allCompileFlags & mask_all) == test_all )
{