Skip to content

Commit 4dcb5e5

Browse files
committed
do not use mojang gl
1 parent 6d65b57 commit 4dcb5e5

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ import com.lambda.graphics.gl.VaoUtils.bufferData
1919
import com.lambda.graphics.gl.VaoUtils.unbindIndexBuffer
2020
import com.lambda.graphics.gl.VaoUtils.unbindVertexArray
2121
import com.lambda.graphics.gl.VaoUtils.unbindVertexBuffer
22-
import com.lambda.threading.mainThread
2322
import com.lambda.threading.runOnGameThread
24-
import com.mojang.blaze3d.systems.RenderSystem.drawElements
2523
import org.lwjgl.opengl.GL30C.*
2624
import java.awt.Color
2725
import java.nio.ByteBuffer
@@ -172,7 +170,7 @@ class VAO(
172170
if (indicesCount <= 0) return
173171

174172
bindVertexArray(vao)
175-
drawElements(drawMode.gl, indicesCount, GL_UNSIGNED_INT)
173+
glDrawElements(drawMode.gl, indicesCount, GL_UNSIGNED_INT, 0)
176174
unbindVertexArray()
177175
}
178176

0 commit comments

Comments
 (0)