Skip to content

Commit 9ec4c1d

Browse files
committed
Revert "do NOT use mojang gl"
This reverts commit 0e93ec0.
1 parent 0e93ec0 commit 9ec4c1d

File tree

1 file changed

+2
-2
lines changed
  • common/src/main/kotlin/com/lambda/graphics/buffer/vao

1 file changed

+2
-2
lines changed

common/src/main/kotlin/com/lambda/graphics/buffer/vao/VAO.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import com.lambda.graphics.gl.VaoUtils.unbindIndexBuffer
2020
import com.lambda.graphics.gl.VaoUtils.unbindVertexArray
2121
import com.lambda.graphics.gl.VaoUtils.unbindVertexBuffer
2222
import com.lambda.threading.runGameScheduled
23-
import org.lwjgl.opengl.GL11C
23+
import com.mojang.blaze3d.systems.RenderSystem.drawElements
2424
import org.lwjgl.opengl.GL30C.*
2525
import java.awt.Color
2626
import java.nio.ByteBuffer
@@ -171,7 +171,7 @@ class VAO(
171171
if (indicesCount <= 0) return
172172

173173
bindVertexArray(vao)
174-
glDrawElements(drawMode.gl, indicesCount, GL_UNSIGNED_INT, 0)
174+
drawElements(drawMode.gl, indicesCount, GL_UNSIGNED_INT)
175175
unbindVertexArray()
176176
}
177177

0 commit comments

Comments
 (0)