From 6287c1750f16bc6fb124a5d36efab132692e89ff Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 6 Nov 2019 16:09:21 +0100 Subject: [PATCH] Revert "app/internal/window: finish GL commands before resizing" This reverts commit 8e874e1afd2c593cad15cea0c307ff4c3dbfab4a. Didn't fix flickering. --- app/internal/window/egl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/internal/window/egl.go b/app/internal/window/egl.go index 29718691..3c54c086 100644 --- a/app/internal/window/egl.go +++ b/app/internal/window/egl.go @@ -134,8 +134,6 @@ func (c *context) MakeCurrent() error { if c.eglWin == win && width == c.width && height == c.height { return nil } - // Make sure any in-flight GL commands are complete. - c.c.Finish() c.width, c.height = width, height // Do not re-create surfaces when only resizing. This prevents flickering when resizing on X11. if c.eglWin != win { @@ -144,6 +142,8 @@ func (c *context) MakeCurrent() error { c.srgbFBO = nil } if c.eglSurf != nilEGLSurface { + // Make sure any in-flight GL commands are complete. + c.c.Finish() eglMakeCurrent(c.eglCtx.disp, nilEGLSurface, nilEGLSurface, nilEGLContext) eglDestroySurface(c.eglCtx.disp, c.eglSurf) c.eglSurf = nilEGLSurface