diff --git a/internal/graphics/opengl/context_desktop.go b/internal/graphics/opengl/context_desktop.go index ba6c74f24..5498c1f37 100644 --- a/internal/graphics/opengl/context_desktop.go +++ b/internal/graphics/opengl/context_desktop.go @@ -426,9 +426,3 @@ func (c *Context) DrawElements(mode Mode, len int) { gl.DrawElements(uint32(mode), int32(len), gl.UNSIGNED_SHORT, gl.PtrOffset(0)) }) } - -func (c *Context) Finish() { - c.RunOnContextThread(func() { - gl.Finish() - }) -} diff --git a/internal/graphics/opengl/context_mobile.go b/internal/graphics/opengl/context_mobile.go index 6474091d0..12d16fb08 100644 --- a/internal/graphics/opengl/context_mobile.go +++ b/internal/graphics/opengl/context_mobile.go @@ -343,7 +343,3 @@ func (c *Context) BufferSubData(bufferType BufferType, data []int16) { func (c *Context) DrawElements(mode Mode, len int) { gl.DrawElements(mgl.Enum(mode), len, mgl.UNSIGNED_SHORT, 0) } - -func (c *Context) Finish() { - gl.Finish() -} diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 0ca32c072..3d2ec1a63 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -192,9 +192,6 @@ func (u *UserInterface) SwapBuffers() { func (u *UserInterface) swapBuffers() { // The bound framebuffer must be the default one (0) before swapping buffers. u.context.BindZeroFramebuffer() - // Call glFinish before glfwSwapBuffer to make sure - // all OpenGL tasks are executed. - u.context.Finish() u.context.RunOnContextThread(func() { u.window.SwapBuffers() })