Check viewport is null for adding drawables. Fixes some crashes.
This commit is contained in:
parent
e5e3d8406f
commit
a8957c0a0d
Binary file not shown.
@ -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;
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user