File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/kotlin/com/github/turboscript/graphics/ogl/buffer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ open class GlBuffer(
1414 mapBits : Int = GL_READ_WRITE ,
1515): TRIBuffer {
1616
17- val id : Int = glCreateBuffers()
17+ val glId : Int = glCreateBuffers()
1818
1919 private var lastTarget: Int? = null
2020 protected val arr: MutableArr
@@ -24,15 +24,15 @@ open class GlBuffer(
2424 }
2525
2626 init {
27- glNamedBufferStorage(id , size, GL_MAP_READ_BIT or extraBits)
27+ glNamedBufferStorage(glId , size, GL_MAP_READ_BIT or extraBits)
2828 arr = Arr .wrap(glMapNamedBufferRange(
29- id , 0L , size, mapBits
29+ glId , 0L , size, mapBits
3030 ) as ByteBuffer ).asMutable()
3131 }
3232
3333 fun bind (target : Int ) {
3434 lastTarget = target
35- OpenGlState .bindBuffer(target, id )
35+ OpenGlState .bindBuffer(target, glId )
3636 }
3737
3838 fun unbind () {
You can’t perform that action at this time.
0 commit comments