From 18d87c64dd7353edaac41f4f07b22e100f751f9e Mon Sep 17 00:00:00 2001 From: LexManos Date: Thu, 23 May 2013 22:07:22 -0700 Subject: [PATCH] Fix potential GL issue when atlas animations bind textures without informating RenderEngine. --- .../client/renderer/RenderEngine.java.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/patches/minecraft/net/minecraft/client/renderer/RenderEngine.java.patch b/patches/minecraft/net/minecraft/client/renderer/RenderEngine.java.patch index 7499e6b03..76198d5cf 100644 --- a/patches/minecraft/net/minecraft/client/renderer/RenderEngine.java.patch +++ b/patches/minecraft/net/minecraft/client/renderer/RenderEngine.java.patch @@ -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)