From 1396d6b06b61d33e9fde88009cc2fc3d42e0c851 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 4 Sep 2024 23:45:00 +0200 Subject: [PATCH] this should also check for screentex cvar value 2 dont run certain postprocessor effects when you dont have screentextures enabled --- src/hardware/hw_main.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 0d571e84a..d608940d2 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -5841,12 +5841,7 @@ void HWR_Startup(void) #endif if (msaa) - { - if (a2c) - HWD.pfnSetSpecialState(HWD_SET_MSAA, 2); - else - HWD.pfnSetSpecialState(HWD_SET_MSAA, 1); - } + HWD.pfnSetSpecialState(HWD_SET_MSAA, a2c ? 2 : 1); } startupdone = true; } @@ -5949,7 +5944,7 @@ void HWR_DoPostProcessor(player_t *player) HWD.pfnDrawPolygon(&Surf, v, 4, PF_Modulated|PF_Translucent|PF_NoTexture|PF_NoDepthTest); } - if (!cv_grscreentextures.value) // screen textures are needed for the rest of the effects + if (cv_grscreentextures.value != 2) // screen textures are needed for the rest of the effects return; // Capture the screen for intermission and screen waving @@ -5997,7 +5992,7 @@ void HWR_DoPostProcessor(player_t *player) HWD.pfnPostImgRedraw(v); // Capture the screen again for screen waving on the intermission - if(gamestate != GS_INTERMISSION) + if (gamestate != GS_INTERMISSION) HWD.pfnMakeScreenTexture(HWD_SCREENTEXTURE_GENERIC1); } // Flipping of the screen isn't done here anymore