diff --git a/internal/graphics/framebuffer.go b/internal/graphics/framebuffer.go index b2bbcbcbf..ea39a6f44 100644 --- a/internal/graphics/framebuffer.go +++ b/internal/graphics/framebuffer.go @@ -102,7 +102,7 @@ func (f *Framebuffer) Fill(c *opengl.Context, r, g, b, a float64) error { if err := f.setAsViewport(c); err != nil { return err } - return c.FillFramebuffer(f.native, r, g, b, a) + return c.FillFramebuffer(r, g, b, a) } func (f *Framebuffer) DrawTexture(c *opengl.Context, t *Texture, quads TextureQuads, geo, clr Matrix) error { diff --git a/internal/opengl/context.go b/internal/opengl/context.go index bc5670557..3c577a98f 100644 --- a/internal/opengl/context.go +++ b/internal/opengl/context.go @@ -121,7 +121,7 @@ func (c *Context) SetViewport(f Framebuffer, width, height int) error { return nil } -func (c *Context) FillFramebuffer(f Framebuffer, r, g, b, a float64) error { +func (c *Context) FillFramebuffer(r, g, b, a float64) error { gl.ClearColor(gl.GLclampf(r), gl.GLclampf(g), gl.GLclampf(b), gl.GLclampf(a)) gl.Clear(gl.COLOR_BUFFER_BIT) return nil diff --git a/internal/opengl/context_js.go b/internal/opengl/context_js.go index 995786ebd..be09b362b 100644 --- a/internal/opengl/context_js.go +++ b/internal/opengl/context_js.go @@ -165,7 +165,7 @@ func (c *Context) SetViewport(f Framebuffer, width, height int) error { return nil } -func (c *Context) FillFramebuffer(f Framebuffer, r, g, b, a float64) error { +func (c *Context) FillFramebuffer(r, g, b, a float64) error { // TODO: Use f? gl := c.gl gl.ClearColor(float32(r), float32(g), float32(b), float32(a))