From 90c734a39f9125fb9aa4f185a02e02f22d272081 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 19 Dec 2017 18:07:29 +0200 Subject: [PATCH] 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 --- src/d_main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/d_main.cpp b/src/d_main.cpp index 6247a5339e..656a2ca3b5 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -797,7 +797,13 @@ void D_Display () case GS_LEVEL: case GS_TITLELEVEL: if (!gametic) + { + if (!screen->HasBegun2D()) + { + screen->Begin2D(false); + } break; + } if (StatusBar != NULL) {