mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-24 14:06:42 +01:00
Fix broken rendering state
This commit is contained in:
parent
4b1c187d64
commit
774f1b5f56
1 changed files with 5 additions and 3 deletions
|
@ -15,7 +15,6 @@ import com.mojang.blaze3d.platform.GlStateManager.SourceFactor;
|
||||||
import com.mojang.blaze3d.systems.RenderSystem;
|
import com.mojang.blaze3d.systems.RenderSystem;
|
||||||
import com.simibubi.create.AllItems;
|
import com.simibubi.create.AllItems;
|
||||||
import com.simibubi.create.AllKeys;
|
import com.simibubi.create.AllKeys;
|
||||||
import com.simibubi.create.foundation.utility.TessellatorHelper;
|
|
||||||
import com.simibubi.create.foundation.utility.outliner.BlockClusterOutline;
|
import com.simibubi.create.foundation.utility.outliner.BlockClusterOutline;
|
||||||
import com.simibubi.create.foundation.utility.outliner.Outline;
|
import com.simibubi.create.foundation.utility.outliner.Outline;
|
||||||
import com.simibubi.create.foundation.utility.outliner.OutlineParticle;
|
import com.simibubi.create.foundation.utility.outliner.OutlineParticle;
|
||||||
|
@ -196,8 +195,11 @@ public class ChassisRangeDisplay {
|
||||||
|
|
||||||
public static void renderOutlines(float partialTicks, MatrixStack ms, IRenderTypeBuffer buffer) {
|
public static void renderOutlines(float partialTicks, MatrixStack ms, IRenderTypeBuffer buffer) {
|
||||||
// TODO 1.15 buffered render
|
// TODO 1.15 buffered render
|
||||||
|
if (entries.isEmpty() && groupEntries.isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
RenderSystem.lineWidth(2);
|
RenderSystem.lineWidth(2);
|
||||||
TessellatorHelper.prepareForDrawing();
|
//TessellatorHelper.prepareForDrawing();
|
||||||
RenderSystem.disableTexture();
|
RenderSystem.disableTexture();
|
||||||
RenderSystem.enableAlphaTest();
|
RenderSystem.enableAlphaTest();
|
||||||
|
|
||||||
|
@ -208,7 +210,7 @@ public class ChassisRangeDisplay {
|
||||||
|
|
||||||
RenderSystem.enableTexture();
|
RenderSystem.enableTexture();
|
||||||
RenderSystem.blendFunc(SourceFactor.SRC_ALPHA, DestFactor.ONE_MINUS_SRC_ALPHA);
|
RenderSystem.blendFunc(SourceFactor.SRC_ALPHA, DestFactor.ONE_MINUS_SRC_ALPHA);
|
||||||
TessellatorHelper.cleanUpAfterDrawing();
|
//TessellatorHelper.cleanUpAfterDrawing();
|
||||||
RenderSystem.lineWidth(1);
|
RenderSystem.lineWidth(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue