File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
common/src/main/kotlin/com/lambda/graphics/buffer/vao Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ import com.lambda.graphics.gl.VaoUtils.bufferData
1919import com.lambda.graphics.gl.VaoUtils.unbindIndexBuffer
2020import com.lambda.graphics.gl.VaoUtils.unbindVertexArray
2121import com.lambda.graphics.gl.VaoUtils.unbindVertexBuffer
22- import com.lambda.threading.mainThread
2322import com.lambda.threading.runOnGameThread
24- import com.mojang.blaze3d.systems.RenderSystem.drawElements
2523import org.lwjgl.opengl.GL30C.*
2624import java.awt.Color
2725import 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
You can’t perform that action at this time.
0 commit comments