From 6eb05a0203d7aebee0c48a284840536f699e35f6 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 13 Jan 2020 18:55:19 +0900 Subject: [PATCH] graphicsdriver/opengl: Enable to compile with gldebug --- internal/graphicsdriver/opengl/context_mobile.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/graphicsdriver/opengl/context_mobile.go b/internal/graphicsdriver/opengl/context_mobile.go index 5e9edc9dd..54a83c0b0 100644 --- a/internal/graphicsdriver/opengl/context_mobile.go +++ b/internal/graphicsdriver/opengl/context_mobile.go @@ -254,7 +254,7 @@ func (c *context) newProgram(shaders []shader, attributes []string) (program, er } for i, name := range attributes { - gl.BindAttribLocation(p, mgl.Attrib{uint(i)}, name) + gl.BindAttribLocation(p, mgl.Attrib{Value: uint(i)}, name) } gl.LinkProgram(p) @@ -314,17 +314,17 @@ func (c *context) uniformFloats(p program, location string, v []float32) { func (c *context) vertexAttribPointer(p program, index int, size int, dataType dataType, stride int, offset int) { gl := c.gl - gl.VertexAttribPointer(mgl.Attrib{uint(index)}, size, mgl.Enum(dataType), false, stride, offset) + gl.VertexAttribPointer(mgl.Attrib{Value: uint(index)}, size, mgl.Enum(dataType), false, stride, offset) } func (c *context) enableVertexAttribArray(p program, index int) { gl := c.gl - gl.EnableVertexAttribArray(mgl.Attrib{uint(index)}) + gl.EnableVertexAttribArray(mgl.Attrib{Value: uint(index)}) } func (c *context) disableVertexAttribArray(p program, index int) { gl := c.gl - gl.DisableVertexAttribArray(mgl.Attrib{uint(index)}) + gl.DisableVertexAttribArray(mgl.Attrib{Value: uint(index)}) } func (c *context) newArrayBuffer(size int) buffer {