st/dri: if flushing a drawable, don't set reason=SWAPBUFFERS 03/7003/1
authorMarek Olšák <maraeo@gmail.com>
Sat, 1 Jun 2013 01:19:21 +0000 (03:19 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 13 Jun 2013 01:54:14 +0000 (03:54 +0200)
0 means SWAPBUFFERS.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/state_trackers/dri/drm/dri2.c

index a0b29d3..1dcc1f7 100644 (file)
@@ -45,7 +45,7 @@
 static void
 dri2_flush_drawable(__DRIdrawable *dPriv)
 {
-   dri_flush(dPriv->driContextPriv, dPriv, __DRI2_FLUSH_DRAWABLE, 0);
+   dri_flush(dPriv->driContextPriv, dPriv, __DRI2_FLUSH_DRAWABLE, -1);
 }
 
 static void