mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
dispose rendered image
This commit is contained in:
@@ -88,6 +88,8 @@ public class RewardActor extends Actor implements Disposable, ImageFetcher.Callb
|
|||||||
}
|
}
|
||||||
if (T != null)
|
if (T != null)
|
||||||
T.dispose();
|
T.dispose();
|
||||||
|
if (Talt != null)
|
||||||
|
Talt.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean toolTipIsVisible() {
|
public boolean toolTipIsVisible() {
|
||||||
@@ -140,6 +142,8 @@ public class RewardActor extends Actor implements Disposable, ImageFetcher.Callb
|
|||||||
}
|
}
|
||||||
if (T != null)
|
if (T != null)
|
||||||
T.dispose();
|
T.dispose();
|
||||||
|
if (alternate && Talt != null)
|
||||||
|
Talt.dispose();
|
||||||
ImageCache.updateSynqCount(imageFile, count);
|
ImageCache.updateSynqCount(imageFile, count);
|
||||||
Gdx.graphics.requestRendering();
|
Gdx.graphics.requestRendering();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user