summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-03-31 15:51:39 -0400
committerAdam Jackson <ajax@redhat.com>2016-05-11 11:23:20 -0400
commitd5ba09598210063926aeff55ac58d2b7020d9a03 (patch)
treeb1b6eb0d9d609133b83d1ea4abb92bc0bb23e00f
parent0ba4e251a1012bd5a2eab83e2c51006ec3805394 (diff)
glx/dri2: Implement dri2FlushFrontBuffer explicitly
No functional change. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--glx/glxdri2.c5
1 files changed, 4 insertions, 1 deletions
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 = {