From d99505c7132d97899798139a38763fe1deaa738b Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Tue, 10 Jun 2014 03:28:35 -0700 Subject: [PATCH] Fix block renderer to not be hugely inefficient. --- common/buildcraft/core/render/RenderEntityBlock.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/common/buildcraft/core/render/RenderEntityBlock.java b/common/buildcraft/core/render/RenderEntityBlock.java index b9f0288fb5..734089004f 100644 --- a/common/buildcraft/core/render/RenderEntityBlock.java +++ b/common/buildcraft/core/render/RenderEntityBlock.java @@ -206,9 +206,7 @@ public void renderBlock(RenderInfo info, IBlockAccess blockAccess, double x, dou realDoLight = false; } - // TODO: needs to cancel the test because the variable is now private... May need to - // duplicate the tessellator code. - //if (doTessellating && !tessellator.isDrawing) + if (doTessellating) tessellator.startDrawingQuads(); float light = 0; @@ -280,9 +278,7 @@ public void renderBlock(RenderInfo info, IBlockAccess blockAccess, double x, dou renderBlocks.renderFaceXPos(info.baseBlock, x, y, z, info.getBlockTextureFromSide(5)); } - // TODO: needs to cancel the test because the variable is now private... May need to - // duplicate the tessellator code. - //if (doTessellating && tessellator.isDrawing) - tessellator.draw(); + if (doTessellating) + tessellator.draw(); } }