Permalink
Browse files

Stop leaking Texture2D objects into the scene.

  • Loading branch information...
Jon Frisby Jon Frisby
Jon Frisby authored and Jon Frisby committed Dec 18, 2009
1 parent 2497c63 commit 5b7399a87d11030e2379a641ab430f0ca98618c2
Showing with 1 addition and 0 deletions.
  1. +1 −0 Source/Resources.cs
View
@@ -85,6 +85,7 @@ public static Texture2D GetTextureResource( string resourceName, Assembly assemb
Texture2D texture;
texture = new Texture2D( 4, 4 );
+ texture.hideFlags = HideFlags.HideAndDontSave;
texture.LoadImage( GetByteResource( resourceName, assembly ) );
return texture;

0 comments on commit 5b7399a

Please sign in to comment.