these are necessary in 1.7 and don't hurt here (might even prevent issues for some contexts, I guess)

This commit is contained in:
Florian Nücke 2014-02-27 12:14:42 +01:00
parent aa474f3425
commit 7938a04fd8

View File

@ -31,6 +31,7 @@ object HologramRenderer extends TileEntitySpecialRenderer with Callable[Int] wit
if (!hologram.hasPower) return
GL11.glPushAttrib(0xFFFFFFFF)
RenderState.makeItBlend()
GL11.glPushMatrix()
GL11.glTranslated(x + 0.5, y + 0.5, z + 0.5)
@ -47,6 +48,7 @@ object HologramRenderer extends TileEntitySpecialRenderer with Callable[Int] wit
// pass we find the front-most fragment, in the second we actually draw it.
// TODO proper transparency shader? depth peeling e.g.
GL11.glColorMask(false, false, false, false)
GL11.glDepthMask(true)
val list = cache.get(hologram, this)
compileOrDraw(list)
GL11.glColorMask(true, true, true, true)