clear bitmap reference after texture is loaded

This commit is contained in:
Hannes Janetzek 2013-06-17 05:29:14 +02:00
parent 7d3c9d1413
commit fbc1bb6386

View File

@ -158,6 +158,10 @@ public class TextureItem extends Inlist<TextureItem> {
if (!to.ownBitmap)
TextureItem.releaseBitmap(to);
else{
// FIXME when in doubt
to.bitmap = null;
}
}
public static void uploadTexture(TextureItem to, Bitmap bitmap,