diff --git a/src/Graphics/TextureCollection.cs b/src/Graphics/TextureCollection.cs index f91f1c5..ea9c25e 100644 --- a/src/Graphics/TextureCollection.cs +++ b/src/Graphics/TextureCollection.cs @@ -28,7 +28,7 @@ namespace Microsoft.Xna.Framework.Graphics { #if DEBUG // XNA checks for disposed textures here! -flibit - if (value.IsDisposed) + if (value != null && value.IsDisposed) { throw new ObjectDisposedException( value.GetType().ToString()