From d5ba09598210063926aeff55ac58d2b7020d9a03 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 31 Mar 2016 15:51:39 -0400 Subject: glx/dri2: Implement dri2FlushFrontBuffer explicitly No functional change. Reviewed-by: Eric Anholt Signed-off-by: Adam Jackson --- glx/glxdri2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 253d06611..afaf44e7e 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -754,8 +754,11 @@ dri2GetBuffersWithFormat(__DRIdrawable * driDrawable, static void dri2FlushFrontBuffer(__DRIdrawable * driDrawable, void *loaderPrivate) { + __GLXDRIdrawable *private = (__GLXDRIdrawable *) loaderPrivate; (void) driDrawable; - __glXDRIdrawableWaitGL((__GLXdrawable *) loaderPrivate); + + copy_box(loaderPrivate, DRI2BufferFrontLeft, DRI2BufferFakeFrontLeft, + 0, 0, private->width, private->height); } static const __DRIdri2LoaderExtension loaderExtension = { -- cgit v1.2.3