File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -2009,7 +2009,6 @@ static bool ParseStage( shaderStage_t *stage, const char **text )
20092009 filterType_t filterType;
20102010 char buffer[ 1024 ] = " " ;
20112011 bool loadMap = false ;
2012- bool blendRegimeMatch = true ;
20132012
20142013 while ( true )
20152014 {
@@ -2845,23 +2844,6 @@ static bool ParseStage( shaderStage_t *stage, const char **text )
28452844 continue ;
28462845 }
28472846 }
2848- // disable the stage if the renderer's blending mode does not match the specified mode
2849- else if ( !Q_stricmp ( token, " ifBlendRegime" ) )
2850- {
2851- token = COM_ParseExt2 ( text, false );
2852- if ( !Q_stricmp ( token, " naive" ) )
2853- {
2854- blendRegimeMatch = !tr.worldLinearizeTexture ;
2855- }
2856- else if ( !Q_stricmp ( token, " linear" ) )
2857- {
2858- blendRegimeMatch = tr.worldLinearizeTexture ;
2859- }
2860- else
2861- {
2862- Log::Warn ( " unknown parameter'%s' for ifBlendRegime in shader '%s'" , token, shader.name );
2863- }
2864- }
28652847 // alpha <arithmetic expression>
28662848 else if ( !Q_stricmp ( token, " alpha" ) )
28672849 {
@@ -3240,11 +3222,6 @@ static bool ParseStage( shaderStage_t *stage, const char **text )
32403222 }
32413223 }
32423224
3243- if ( !blendRegimeMatch )
3244- {
3245- return true ; // parsing succeeded, but not active
3246- }
3247-
32483225 // parsing succeeded
32493226 stage->active = true ;
32503227
You can’t perform that action at this time.
0 commit comments