egl/wayland: Add invalidate back in eglSwapBuffers()
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 30 Nov 2012 18:29:17 +0000 (13:29 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 30 Nov 2012 22:04:22 +0000 (17:04 -0500)
Commit ca3ed3e024864e91ca3cccc59fb96950e1d079b5 fixed the problem where
eglMakeCurrent would trigger a getbuffer callback that then breaks the
following wl_egl_window_resize() call.  However, we still need to
invalidate buffers in eglSwapBuffers, since in wayland we always swap
buffers, so the dri driver needs to come out and ask us for the next buffer
after each swapbuffer.

Note: this is a candidate for stable branches.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
src/egl/drivers/dri2/platform_wayland.c

index 7b90387a68fd0ddb723a33c33311fb9143ca6dec..7c1aa945837984e5df460f4c21b878c288a30a3e 100644 (file)
@@ -606,6 +606,7 @@ dri2_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw)
    }
 
    (*dri2_dpy->flush->flush)(dri2_surf->dri_drawable);
+   (*dri2_dpy->flush->invalidate)(dri2_surf->dri_drawable);
 
    return EGL_TRUE;
 }