graphicsdriver/opengl: Enable to compile with gldebug tag for gomobile

This commit is contained in:
Hajime Hoshi 2020-09-04 15:08:19 +09:00
parent 760225df75
commit 68c43bb4fb

View File

@ -69,8 +69,8 @@ type programID uint32
var ( var (
invalidTexture = textureNative(mgl.Texture{}) invalidTexture = textureNative(mgl.Texture{})
invalidFramebuffer = framebufferNative(mgl.Framebuffer{(1 << 32) - 1}) invalidFramebuffer = framebufferNative(mgl.Framebuffer{Value: (1 << 32) - 1})
invalidUniform = uniformLocation(mgl.Uniform{-1}) invalidUniform = uniformLocation(mgl.Uniform{Value: -1})
) )
func getProgramID(p program) programID { func getProgramID(p program) programID {