Fixed GLContext is not defined.

This commit is contained in:
Sollace 2018-06-06 19:51:56 +02:00
parent 0710d51b23
commit 44e38c0329

View file

@ -244,14 +244,15 @@ public class GuiSkins extends GuiScreen implements FutureCallback<SkinUploadResp
@Override
public void onGuiClosed() {
super.onGuiClosed();
localPlayer.releaseTextures();
remotePlayer.releaseTextures();
HDSkinManager.clearSkinCache();
Later.performLater(1, () -> {
if (!(Minecraft.getMinecraft().currentScreen instanceof GuiSkins)) {
if (fileDrop != null) {
fileDrop.setVisible(false);
}
GuiSkins.this.localPlayer.releaseTextures();
GuiSkins.this.remotePlayer.releaseTextures();
HDSkinManager.clearSkinCache();
}
});
}