mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
Revert "app/internal/window: finish GL commands before resizing"
This reverts commit 8e874e1afd.
Didn't fix flickering.
This commit is contained in:
@@ -134,8 +134,6 @@ func (c *context) MakeCurrent() error {
|
|||||||
if c.eglWin == win && width == c.width && height == c.height {
|
if c.eglWin == win && width == c.width && height == c.height {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
// Make sure any in-flight GL commands are complete.
|
|
||||||
c.c.Finish()
|
|
||||||
c.width, c.height = width, height
|
c.width, c.height = width, height
|
||||||
// Do not re-create surfaces when only resizing. This prevents flickering when resizing on X11.
|
// Do not re-create surfaces when only resizing. This prevents flickering when resizing on X11.
|
||||||
if c.eglWin != win {
|
if c.eglWin != win {
|
||||||
@@ -144,6 +142,8 @@ func (c *context) MakeCurrent() error {
|
|||||||
c.srgbFBO = nil
|
c.srgbFBO = nil
|
||||||
}
|
}
|
||||||
if c.eglSurf != nilEGLSurface {
|
if c.eglSurf != nilEGLSurface {
|
||||||
|
// Make sure any in-flight GL commands are complete.
|
||||||
|
c.c.Finish()
|
||||||
eglMakeCurrent(c.eglCtx.disp, nilEGLSurface, nilEGLSurface, nilEGLContext)
|
eglMakeCurrent(c.eglCtx.disp, nilEGLSurface, nilEGLSurface, nilEGLContext)
|
||||||
eglDestroySurface(c.eglCtx.disp, c.eglSurf)
|
eglDestroySurface(c.eglCtx.disp, c.eglSurf)
|
||||||
c.eglSurf = nilEGLSurface
|
c.eglSurf = nilEGLSurface
|
||||||
|
|||||||
Reference in New Issue
Block a user