drawTexturedModalRect((width-400)/2, 50, 128, 128, 0, 0, 1, 1);
if(crestDirty){
currentCrest.refreshWith(currentData, true);
crestDirty = false;
}
<BUG>GL11.glColor3f(1F, 1F, 1F);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE_MINUS_SRC_ALPHA);

GL11.glDisable(GL11.GL_ALPHA_TEST);
currentCrest.updateDynamicTexture();</BUG>
ResourceLocation rl = Minecraft.getMinecraft().getTextureManager().getDynamicTextureLocation("gui_crest", currentCrest);

drawTexturedModalRect((width-400)/2, 50, 128, 128, 0, 0, 1, 1);
if(crestDirty){
currentCrest.refreshWith(currentData, true);
crestDirty = false;
}
GlStateManager.color(1F, 1F, 1F);
GlStateManager.enableBlend();
GlStateManager.blendFunc(GL11.GL_ONE, GL11.GL_ONE_MINUS_SRC_ALPHA);
GlStateManager.disableAlpha();
currentCrest.updateDynamicTexture();
ResourceLocation rl = Minecraft.getMinecraft().getTextureManager().getDynamicTextureLocation("gui_crest", currentCrest);
