Skip to content

Commit 0e93ec0

Browse files
committed
do NOT use mojang gl
1 parent 054f454 commit 0e93ec0

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 com.mojang.blaze3d.systems.RenderSystem.drawElements
23+
import org.lwjgl.opengl.GL11C
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-
drawElements(drawMode.gl, indicesCount, GL_UNSIGNED_INT)
174+
glDrawElements(drawMode.gl, indicesCount, GL_UNSIGNED_INT, 0)
175175
unbindVertexArray()
176176
}
177177

0 commit comments

Comments
 (0)