Skip to content

Commit 0929cde

Browse files
committed
Add null check for loading screen texture in the Dispose function
1 parent 4c58d62 commit 0929cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/RunActivity/Viewer3D/Processes/GameStateRunActivity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ public LoadingMaterial(Game game)
13681368

13691369
public void Dispose()
13701370
{
1371-
Texture.Dispose();
1371+
Texture?.Dispose();
13721372
}
13731373

13741374
virtual protected Texture2D GetTexture(Game game)

0 commit comments

Comments
 (0)