File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
common/src/main/kotlin/com/lambda/graphics/buffer/vao Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import com.lambda.graphics.gl.VaoUtils.unbindIndexBuffer
2020import com.lambda.graphics.gl.VaoUtils.unbindVertexArray
2121import com.lambda.graphics.gl.VaoUtils.unbindVertexBuffer
2222import com.lambda.threading.runGameScheduled
23- import com.mojang.blaze3d.systems.RenderSystem.drawElements
23+ import org.lwjgl.opengl.GL11C
2424import org.lwjgl.opengl.GL30C.*
2525import java.awt.Color
2626import 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
You can’t perform that action at this time.
0 commit comments