diff --git a/src/main/java/com/jozufozu/flywheel/backend/instancing/instancing/InstancedMaterialGroup.java b/src/main/java/com/jozufozu/flywheel/backend/instancing/instancing/InstancedMaterialGroup.java index b132596ca..dd0802559 100644 --- a/src/main/java/com/jozufozu/flywheel/backend/instancing/instancing/InstancedMaterialGroup.java +++ b/src/main/java/com/jozufozu/flywheel/backend/instancing/instancing/InstancedMaterialGroup.java @@ -94,7 +94,7 @@ public class InstancedMaterialGroup
implements MaterialG if (material.nothingToRender()) continue; P program = owner.context.getProgram(ProgramContext.create(entry.getKey() - .getProgramSpec(), Formats.POS_TEX_NORMAL, layer)); + .getProgramSpec(), Formats.BLOCK, layer)); // XXX Shader is bound and not reset or restored program.bind(); @@ -155,7 +155,7 @@ public class InstancedMaterialGroup
implements MaterialG .onAMDWindows()) { return FallbackAllocator.INSTANCE; } else { - return new ModelPool(Formats.POS_TEX_NORMAL); + return new ModelPool(Formats.BLOCK); } } } diff --git a/src/main/java/com/jozufozu/flywheel/backend/model/FallbackAllocator.java b/src/main/java/com/jozufozu/flywheel/backend/model/FallbackAllocator.java index 42d1a67df..28d203d1f 100644 --- a/src/main/java/com/jozufozu/flywheel/backend/model/FallbackAllocator.java +++ b/src/main/java/com/jozufozu/flywheel/backend/model/FallbackAllocator.java @@ -8,7 +8,7 @@ public enum FallbackAllocator implements ModelAllocator { @Override public BufferedModel alloc(Model model, Callback allocationCallback) { - IndexedModel out = new IndexedModel(model, Formats.POS_TEX_NORMAL); + IndexedModel out = new IndexedModel(model, Formats.BLOCK); allocationCallback.onAlloc(out); return out; }