From a90e6a1f5695deeef703fe2d50f3625b268b875a Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Tue, 7 Dec 2021 22:45:10 -0800 Subject: [PATCH] Quick fix for create's contraptions --- .../java/com/jozufozu/flywheel/backend/model/IndexedModel.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/jozufozu/flywheel/backend/model/IndexedModel.java b/src/main/java/com/jozufozu/flywheel/backend/model/IndexedModel.java index ab0de034f..d5d7ba974 100644 --- a/src/main/java/com/jozufozu/flywheel/backend/model/IndexedModel.java +++ b/src/main/java/com/jozufozu/flywheel/backend/model/IndexedModel.java @@ -35,6 +35,7 @@ public class IndexedModel extends BufferedModel { @Override public void drawCall() { + ebo.bind(); GL20.glDrawElements(primitiveMode.glEnum, ebo.elementCount, ebo.eboIndexType.getGlEnum(), 0); }