mark two shader checks nullable
This commit is contained in:
parent
b104009ba6
commit
48a8cb1d67
|
|
@ -783,7 +783,7 @@ void CreateMapFogs( void )
|
||||||
|
|
||||||
/* set up fog */
|
/* set up fog */
|
||||||
fog = &mapFogs[ numMapFogs++ ];
|
fog = &mapFogs[ numMapFogs++ ];
|
||||||
fog->si = ShaderInfoForShader( globalFog );
|
fog->si = ShaderInfoForShaderNull( globalFog );
|
||||||
if( fog->si == NULL )
|
if( fog->si == NULL )
|
||||||
Error( "Invalid shader \"%s\" referenced trying to add global fog", globalFog );
|
Error( "Invalid shader \"%s\" referenced trying to add global fog", globalFog );
|
||||||
fog->brush = NULL;
|
fog->brush = NULL;
|
||||||
|
|
|
||||||
|
|
@ -1094,7 +1094,7 @@ static void PopulateWithPicoModel( int castShadows, picoModel_t *model, m4x4_t t
|
||||||
shader = PicoGetSurfaceShader( surface );
|
shader = PicoGetSurfaceShader( surface );
|
||||||
if( shader == NULL )
|
if( shader == NULL )
|
||||||
continue;
|
continue;
|
||||||
ti.si = ShaderInfoForShader( PicoGetShaderName( shader ) );
|
ti.si = ShaderInfoForShaderNull( PicoGetShaderName( shader ) );
|
||||||
if( ti.si == NULL )
|
if( ti.si == NULL )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3193,8 +3193,6 @@ void SetupBrushesFlags( int mask_any, int test_any, int mask_all, int test_all )
|
||||||
allCompileFlags &= si->compileFlags;
|
allCompileFlags &= si->compileFlags;
|
||||||
}
|
}
|
||||||
|
|
||||||
Sys_FPrintf( SYS_VRB, "flags: %d (all: %d)\n", compileFlags, allCompileFlags );
|
|
||||||
|
|
||||||
/* determine if this brush is opaque to light */
|
/* determine if this brush is opaque to light */
|
||||||
if( (compileFlags & mask_any) == test_any && (allCompileFlags & mask_all) == test_all )
|
if( (compileFlags & mask_any) == test_any && (allCompileFlags & mask_all) == test_all )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user