diff --git a/src/main/java/com/jozufozu/flywheel/backend/gl/buffer/VecBuffer.java b/src/main/java/com/jozufozu/flywheel/backend/gl/buffer/VecBuffer.java index d24867f8e..4ec8b1590 100644 --- a/src/main/java/com/jozufozu/flywheel/backend/gl/buffer/VecBuffer.java +++ b/src/main/java/com/jozufozu/flywheel/backend/gl/buffer/VecBuffer.java @@ -37,11 +37,8 @@ public class VecBuffer { public VecBuffer putFloatArray(float[] floats) { - for (float f : floats) { - internal.putFloat(f); - } - // internal.asFloatBuffer().put(floats); - // internal.position(internal.position() + floats.length * 4); + internal.asFloatBuffer().put(floats); + internal.position(internal.position() + floats.length * 4); return this; }