Fix CardArtCache,LoadingCache Dispose Textures

This commit is contained in:
Anthony Calosa
2020-05-11 10:22:13 +08:00
parent 6362390e6a
commit deb0d7e2f1
7 changed files with 40 additions and 6 deletions

View File

@@ -45,7 +45,12 @@ public class ConquestRegion {
return name;
}
public void clearArt() {
art = null;
}
public ISkinImage getArt() {
clearArt(); //force clear this so it will be redrawn since loadingcache invalidates the cache every screen change
if (art == null) {
PaperCard pc = cardPool.getCard(artCardName);