File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1403,17 +1403,13 @@ void Render_portal( shaderStage_t *pStage )
14031403
14041404void Render_heatHaze ( shaderStage_t *pStage )
14051405{
1406- uint32_t stateBits;
14071406 float deformMagnitude;
14081407
14091408 GLIMP_LOGCOMMENT ( " --- Render_heatHaze ---" );
14101409
1411- // remove alpha test
1412- stateBits = pStage->stateBits ;
1413- stateBits &= ~GLS_ATEST_BITS;
1414- stateBits &= ~GLS_DEPTHMASK_TRUE;
1410+ ASSERT ( !( pStage->stateBits & GLS_DEPTHMASK_TRUE ) );
14151411
1416- GL_State ( stateBits );
1412+ GL_State ( pStage-> stateBits );
14171413
14181414 // choose right shader program ----------------------------------
14191415 ProcessShaderHeatHaze ( pStage );
Original file line number Diff line number Diff line change @@ -5148,6 +5148,7 @@ static void FinishStages()
51485148 {
51495149 case stageType_t::ST_HEATHAZEMAP:
51505150 stage->active = r_heatHaze->integer ;
5151+ stage->stateBits &= ~( GLS_ATEST_BITS | GLS_DEPTHMASK_TRUE );
51515152 break ;
51525153
51535154 case stageType_t::ST_LIQUIDMAP:
You can’t perform that action at this time.
0 commit comments