From 684200e75c09978e2ad7fc3f3120df6e85bc41b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davorin=20U=C4=8Dakar?= Date: Tue, 21 Oct 2014 03:34:19 +0200 Subject: [PATCH] Fixed texture unloading --- DatabaseLoaderTexture_DDS.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DatabaseLoaderTexture_DDS.cs b/DatabaseLoaderTexture_DDS.cs index f23a6b8..144ba19 100644 --- a/DatabaseLoaderTexture_DDS.cs +++ b/DatabaseLoaderTexture_DDS.cs @@ -173,7 +173,7 @@ public static Texture2D LoadDDS(string filename) Texture2D texture = new Texture2D(dwWidth, dwHeight, textureFormat, dwMipMapCount > 1); texture.LoadRawTextureData(dxtBytes); - texture.Apply(); + texture.Apply(false, true); return texture; } } @@ -183,4 +183,4 @@ private static bool fourCCEquals(IList bytes, string s) return bytes[0] == s[0] && bytes[1] == s[1] && bytes[2] == s[2] && bytes[3] == s[3]; } } -} \ No newline at end of file +}