mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
Fixed VM abort when drawing from ZScript happens during 0 game tic
https://forum.zdoom.org/viewtopic.php?t=58523 https://forum.zdoom.org/viewtopic.php?t=58780
This commit is contained in:
parent
8c60c3c532
commit
90c734a39f
1 changed files with 6 additions and 0 deletions
|
@ -797,7 +797,13 @@ void D_Display ()
|
||||||
case GS_LEVEL:
|
case GS_LEVEL:
|
||||||
case GS_TITLELEVEL:
|
case GS_TITLELEVEL:
|
||||||
if (!gametic)
|
if (!gametic)
|
||||||
|
{
|
||||||
|
if (!screen->HasBegun2D())
|
||||||
|
{
|
||||||
|
screen->Begin2D(false);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (StatusBar != NULL)
|
if (StatusBar != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue