mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-12 22:17: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) {
|
func (c *Context) ArrayBufferSubData(data []float32) {
|
||||||
gl := c.gl
|
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) {
|
func (c *Context) ElementArrayBufferSubData(data []uint16) {
|
||||||
gl := c.gl
|
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) {
|
func (c *Context) DeleteBuffer(b Buffer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user