- fixed inconsistent wipe state with stereo 3D mode enabled

https://forum.zdoom.org/viewtopic.php?t=65181
This commit is contained in:
alexey.lysiuk 2019-06-26 22:26:14 +03:00
parent 8f00eb54d8
commit 77ea4a9fb7

View file

@ -733,9 +733,13 @@ void D_Display ()
wipegamestate = gamestate; wipegamestate = gamestate;
} }
// No wipes when in a stereo3D VR mode // No wipes when in a stereo3D VR mode
else if (gamestate != wipegamestate && gamestate != GS_FULLCONSOLE && gamestate != GS_TITLELEVEL && (vr_mode == 0 || vid_rendermode != 4)) else if (gamestate != wipegamestate && gamestate != GS_FULLCONSOLE && gamestate != GS_TITLELEVEL)
{ // save the current screen if about to wipe {
if (vr_mode == 0 || vid_rendermode != 4)
{
// save the current screen if about to wipe
wipe = screen->WipeStartScreen (); wipe = screen->WipeStartScreen ();
switch (wipegamestate) switch (wipegamestate)
{ {
default: default:
@ -747,13 +751,15 @@ void D_Display ()
break; break;
case GS_FORCEWIPEBURN: case GS_FORCEWIPEBURN:
wipe_type =wipe_Burn; wipe_type = wipe_Burn;
break; break;
case GS_FORCEWIPEMELT: case GS_FORCEWIPEMELT:
wipe_type = wipe_Melt; wipe_type = wipe_Melt;
break; break;
} }
}
wipegamestate = gamestate; wipegamestate = gamestate;
} }
else else