diff --git a/Vocaluxe/Lib/Draw/CDirect3D.cs b/Vocaluxe/Lib/Draw/CDirect3D.cs index a37722fa..2640ad0a 100644 --- a/Vocaluxe/Lib/Draw/CDirect3D.cs +++ b/Vocaluxe/Lib/Draw/CDirect3D.cs @@ -594,7 +594,10 @@ namespace Vocaluxe.Lib.Draw //Dispose all textures foreach (KeyValuePair p in _D3DTextures) { - p.Value.Dispose(); + if (p.Value != null) + { + p.Value.Dispose(); + } } TexturedColoredVertex.GetDeclaration(_Device).Dispose();