draw a black screen instead of "nothing" during wipes on disabled screentextures

should resolve the intense flashing that can occur
This commit is contained in:
Alug committed 2024-05-28 00:52:09 +02:00
1 parent 5251482dd7
commit 6ea1abfedc
1 file changed
+6
+6
View File
@@ -6238,6 +6238,12 @@ void HWR_DoWipe(UINT8 wipenum, UINT8 scrnnum)
lumpnum_t lumpnum;
size_t lsize;
if (cv_grscreentextures.value == 0)
{
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, 31); // just draw a black screen instead of flashing and crap
return;
}
if (wipenum > 99 || scrnnum > 99) // not a valid wipe number
return; // shouldn't end up here really, the loop should've stopped running beforehand