clear bitmap reference after texture is loaded
This commit is contained in:
parent
7d3c9d1413
commit
fbc1bb6386
@ -158,6 +158,10 @@ public class TextureItem extends Inlist<TextureItem> {
|
|||||||
|
|
||||||
if (!to.ownBitmap)
|
if (!to.ownBitmap)
|
||||||
TextureItem.releaseBitmap(to);
|
TextureItem.releaseBitmap(to);
|
||||||
|
else{
|
||||||
|
// FIXME when in doubt
|
||||||
|
to.bitmap = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void uploadTexture(TextureItem to, Bitmap bitmap,
|
public static void uploadTexture(TextureItem to, Bitmap bitmap,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user