nother framebuffer safety fix

This commit is contained in:
MachineMuse 2013-06-15 04:39:01 -06:00
parent 681329ee37
commit 46bf295d2f

View file

@ -2,6 +2,8 @@ package net.machinemuse.utils.render
import org.lwjgl.opengl.GL11
import net.minecraft.client.renderer.{GLAllocation, RenderHelper, OpenGlHelper}
import net.machinemuse.powersuits.common.Config
import net.minecraft.client.Minecraft
/**
* Library for working with rendering.
@ -108,7 +110,9 @@ object Render {
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240.0F, 240.0F)
}
a <- r
a <- GlowBuffer.draw(r)
a <- if (Config.useShaders && Config.canUseShaders && Minecraft.isFancyGraphicsEnabled) {
GlowBuffer.draw(r)
}
_ <- Render {
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, saved._1, saved._2)
GL11.glPopAttrib()