[PATCH xserver 2/7] glx/dri2: Implement dri2FlushFrontBuffer explicitly

Adam Jackson ajax at redhat.com
Fri Apr 1 16:53:30 UTC 2016


No functional change.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 glx/glxdri2.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index 253d066..afaf44e 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 = {
-- 
2.5.0



More information about the xorg-devel mailing list