mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-16 17:44:23 +01:00
Fixed GLContext is not defined.
This commit is contained in:
parent
0710d51b23
commit
44e38c0329
1 changed files with 4 additions and 3 deletions
|
@ -244,14 +244,15 @@ public class GuiSkins extends GuiScreen implements FutureCallback<SkinUploadResp
|
||||||
@Override
|
@Override
|
||||||
public void onGuiClosed() {
|
public void onGuiClosed() {
|
||||||
super.onGuiClosed();
|
super.onGuiClosed();
|
||||||
|
localPlayer.releaseTextures();
|
||||||
|
remotePlayer.releaseTextures();
|
||||||
|
HDSkinManager.clearSkinCache();
|
||||||
|
|
||||||
Later.performLater(1, () -> {
|
Later.performLater(1, () -> {
|
||||||
if (!(Minecraft.getMinecraft().currentScreen instanceof GuiSkins)) {
|
if (!(Minecraft.getMinecraft().currentScreen instanceof GuiSkins)) {
|
||||||
if (fileDrop != null) {
|
if (fileDrop != null) {
|
||||||
fileDrop.setVisible(false);
|
fileDrop.setVisible(false);
|
||||||
}
|
}
|
||||||
GuiSkins.this.localPlayer.releaseTextures();
|
|
||||||
GuiSkins.this.remotePlayer.releaseTextures();
|
|
||||||
HDSkinManager.clearSkinCache();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue