glx/dri2: set the __DRI2_FLUSH_DRAWABLE flag where it should be set
authorMarek Olšák <maraeo@gmail.com>
Mon, 3 Dec 2012 04:15:11 +0000 (05:15 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 7 Dec 2012 13:19:28 +0000 (14:19 +0100)
Sorry, I accidentally omitted this.

It only broke MLAA.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/glx/dri2_glx.c

index a6ab1bd66835a8640db62ad150156620f1eb4e8d..1b3cf2bfc4f42024bef475fea3c6cdb49123bc99 100644 (file)
@@ -557,7 +557,8 @@ __dri2CopySubBuffer(__GLXDRIdrawable *pdraw, int x, int y,
    xrect.height = height;
 
    if (psc->f && psc->f->base.version >= 4) {
-      unsigned flags = flush ? __DRI2_FLUSH_CONTEXT : 0;
+      unsigned flags = (flush ? __DRI2_FLUSH_CONTEXT : 0) |
+                       __DRI2_FLUSH_DRAWABLE;
       __DRIcontext *ctx = dri2GetCurrentContext();
 
       if (ctx) {
@@ -815,7 +816,8 @@ dri2SwapBuffers(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor,
                           __DRI2_THROTTLE_SWAPBUFFER, flush);
     } else {
        if (psc->f && psc->f->base.version >= 4) {
-          unsigned flags = flush ? __DRI2_FLUSH_CONTEXT : 0;
+          unsigned flags = (flush ? __DRI2_FLUSH_CONTEXT : 0) |
+                           __DRI2_FLUSH_DRAWABLE;
           __DRIcontext *ctx = dri2GetCurrentContext();
 
           if (ctx) {