opengl: Bug fix: mobile build failure

This commit is contained in:
Hajime Hoshi 2018-06-20 11:16:21 +09:00
parent 8d644479cc
commit d83799acf8

View File

@ -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) {