Skip to content

Commit

Permalink
Fixed texture unloading
Browse files Browse the repository at this point in the history
  • Loading branch information
ducakar committed Oct 21, 2014
1 parent cda0f35 commit 684200e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DatabaseLoaderTexture_DDS.cs
Expand Up @@ -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;
}
}
Expand All @@ -183,4 +183,4 @@ private static bool fourCCEquals(IList<byte> bytes, string s)
return bytes[0] == s[0] && bytes[1] == s[1] && bytes[2] == s[2] && bytes[3] == s[3];
}
}
}
}

0 comments on commit 684200e

Please sign in to comment.