From 68c43bb4fba26943a69d4bfe4c47802479a27d5f Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 4 Sep 2020 15:08:19 +0900 Subject: [PATCH] graphicsdriver/opengl: Enable to compile with gldebug tag for gomobile --- internal/graphicsdriver/opengl/context_mobile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/graphicsdriver/opengl/context_mobile.go b/internal/graphicsdriver/opengl/context_mobile.go index 61869767e..245114764 100644 --- a/internal/graphicsdriver/opengl/context_mobile.go +++ b/internal/graphicsdriver/opengl/context_mobile.go @@ -69,8 +69,8 @@ type programID uint32 var ( invalidTexture = textureNative(mgl.Texture{}) - invalidFramebuffer = framebufferNative(mgl.Framebuffer{(1 << 32) - 1}) - invalidUniform = uniformLocation(mgl.Uniform{-1}) + invalidFramebuffer = framebufferNative(mgl.Framebuffer{Value: (1 << 32) - 1}) + invalidUniform = uniformLocation(mgl.Uniform{Value: -1}) ) func getProgramID(p program) programID {