st/dri: if flushing a drawable, don't set reason=SWAPBUFFERS
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 a0b29d3a5409db34429d123e6e2d441a96163d73..1dcc1f7fd063b3fcf23f76b556b5449ff6ecb451 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