From d83799acf8117aef5f502e01cf4bd7f860a49e90 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 20 Jun 2018 11:16:21 +0900 Subject: [PATCH] opengl: Bug fix: mobile build failure --- internal/opengl/context_mobile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/opengl/context_mobile.go b/internal/opengl/context_mobile.go index bcfdc7de8..484a35a3b 100644 --- a/internal/opengl/context_mobile.go +++ b/internal/opengl/context_mobile.go @@ -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) {