mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
opengl: Bug fix: mobile build failure
This commit is contained in:
parent
8d644479cc
commit
d83799acf8
@ -373,12 +373,12 @@ func (c *Context) BindBuffer(bufferType BufferType, b Buffer) {
|
||||
|
||||
func (c *Context) ArrayBufferSubData(data []float32) {
|
||||
gl := c.gl
|
||||
gl.BufferSubData(mgl.Enum(ArrayBuffer), 0, float32ToBytes(data))
|
||||
gl.BufferSubData(mgl.Enum(ArrayBuffer), 0, float32sToBytes(data))
|
||||
}
|
||||
|
||||
func (c *Context) ElementArrayBufferSubData(data []uint16) {
|
||||
gl := c.gl
|
||||
gl.BufferSubData(mgl.Enum(ElementArrayBuffer), 0, uint16ToBytes(data))
|
||||
gl.BufferSubData(mgl.Enum(ElementArrayBuffer), 0, uint16sToBytes(data))
|
||||
}
|
||||
|
||||
func (c *Context) DeleteBuffer(b Buffer) {
|
||||
|
Loading…
Reference in New Issue
Block a user