diff --git a/internal/graphics/opengl/context.go b/internal/graphics/opengl/context.go index 7da4f6fd1..4fefa5ed4 100644 --- a/internal/graphics/opengl/context.go +++ b/internal/graphics/opengl/context.go @@ -14,6 +14,8 @@ package opengl +var ZeroFramebuffer Framebuffer + type Context struct { Nearest Filter Linear Filter diff --git a/internal/graphics/opengl/context_desktop.go b/internal/graphics/opengl/context_desktop.go index fa3707e79..30316149a 100644 --- a/internal/graphics/opengl/context_desktop.go +++ b/internal/graphics/opengl/context_desktop.go @@ -31,8 +31,6 @@ type Shader uint32 type Program uint32 type Buffer uint32 -var ZeroFramebuffer Framebuffer - type uniformLocation int32 type attribLocation int32 diff --git a/internal/graphics/opengl/context_js.go b/internal/graphics/opengl/context_js.go index 55b3624f6..0da88f3da 100644 --- a/internal/graphics/opengl/context_js.go +++ b/internal/graphics/opengl/context_js.go @@ -31,8 +31,6 @@ type Framebuffer struct { *js.Object } -var ZeroFramebuffer Framebuffer - type Shader struct { *js.Object } diff --git a/internal/graphics/opengl/context_mobile.go b/internal/graphics/opengl/context_mobile.go index 25252f7e6..1a1b0b5bd 100644 --- a/internal/graphics/opengl/context_mobile.go +++ b/internal/graphics/opengl/context_mobile.go @@ -29,8 +29,6 @@ type Shader mgl.Shader type Program mgl.Program type Buffer mgl.Buffer -var ZeroFramebuffer Framebuffer - type uniformLocation mgl.Uniform type attribLocation mgl.Attrib