Fix potential GL issue when atlas animations bind textures without informating RenderEngine.

This commit is contained in:
LexManos 2013-05-23 22:07:22 -07:00
parent e27de47090
commit 18d87c64dd
1 changed files with 16 additions and 0 deletions

View File

@ -25,3 +25,19 @@
return i;
}
catch (Exception exception)
@@ -417,6 +421,7 @@
{
this.textureMapBlocks.updateAnimations();
this.textureMapItems.updateAnimations();
+ this.resetBoundTexture(); //Forge: BugFix, Animations don't use our bindTexture, and thus don't change the cached texture.
}
/**
@@ -515,6 +520,7 @@
{
this.textureMapBlocks.refreshTextures();
this.textureMapItems.refreshTextures();
+ this.resetBoundTexture(); //Forge: BugFix, Animations don't use our bindTexture, and thus don't change the cached texture.
}
public Icon getMissingIcon(int par1)