diff --git a/internal/graphics/opengl/context_desktop.go b/internal/graphics/opengl/context_desktop.go index 985d6d86e..575fbbbd6 100644 --- a/internal/graphics/opengl/context_desktop.go +++ b/internal/graphics/opengl/context_desktop.go @@ -226,7 +226,6 @@ func (c *Context) NewFramebuffer(texture Texture) (Framebuffer, error) { func (c *Context) SetViewport(f Framebuffer, width, height int) error { return c.RunOnContextThread(func() error { - gl.Flush() gl.BindFramebuffer(gl.FRAMEBUFFER, uint32(f)) if st := gl.CheckFramebufferStatus(gl.FRAMEBUFFER); st != gl.FRAMEBUFFER_COMPLETE { if e := gl.GetError(); e != 0 { diff --git a/internal/graphics/opengl/context_js.go b/internal/graphics/opengl/context_js.go index ab4985ab2..380704ede 100644 --- a/internal/graphics/opengl/context_js.go +++ b/internal/graphics/opengl/context_js.go @@ -168,7 +168,6 @@ func (c *Context) bindFramebuffer(f Framebuffer) { func (c *Context) FramebufferPixels(f Framebuffer, width, height int) ([]uint8, error) { gl := c.gl - gl.Flush() c.bindFramebuffer(f) diff --git a/internal/graphics/opengl/context_mobile.go b/internal/graphics/opengl/context_mobile.go index 6820c2f49..239023f43 100644 --- a/internal/graphics/opengl/context_mobile.go +++ b/internal/graphics/opengl/context_mobile.go @@ -181,7 +181,6 @@ func (c *Context) NewFramebuffer(texture Texture) (Framebuffer, error) { func (c *Context) SetViewport(f Framebuffer, width, height int) error { gl := c.gl - gl.Flush() gl.BindFramebuffer(mgl.FRAMEBUFFER, mgl.Framebuffer(f)) if err := gl.CheckFramebufferStatus(mgl.FRAMEBUFFER); err != mgl.FRAMEBUFFER_COMPLETE { if e := gl.GetError(); e != 0 {