1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Check viewport is null for adding drawables. Fixes some crashes.

This commit is contained in:
KillzXGaming 2019-05-02 19:59:20 -04:00
parent e5e3d8406f
commit a8957c0a0d
4 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -170,7 +170,7 @@ namespace FirstPlugin.Forms
{
Drawables.Add(draw);
if (!Runtime.UseOpenGL || !Runtime.DisplayViewport)
if (!Runtime.UseOpenGL || !Runtime.DisplayViewport || viewport == null)
{
IsLoaded = false;
return;