mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
mark two shader checks nullable
This commit is contained in:
parent
d590a482aa
commit
83ff5cf016
3 changed files with 2 additions and 4 deletions
|
@ -787,7 +787,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 );
|
||||
}
|
||||
|
|
|
@ -1094,7 +1094,7 @@ static void PopulateWithPicoModel( int castShadows, picoModel_t *model, m4x4_t t
|
|||
if ( shader == NULL ) {
|
||||
continue;
|
||||
}
|
||||
ti.si = ShaderInfoForShader( PicoGetShaderName( shader ) );
|
||||
ti.si = ShaderInfoForShaderNull( PicoGetShaderName( shader ) );
|
||||
if ( ti.si == NULL ) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -2824,8 +2824,6 @@ void SetupBrushesFlags( unsigned int mask_any, unsigned int test_any, unsigned i
|
|||
compileFlags |= 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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue