From: Marek Olšák Date: Sat, 1 Jun 2013 01:19:21 +0000 (+0200) Subject: st/dri: if flushing a drawable, don't set reason=SWAPBUFFERS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3475b2213381cdbda7a620d4c0c7708f6969f489;p=mesa.git st/dri: if flushing a drawable, don't set reason=SWAPBUFFERS 0 means SWAPBUFFERS. Reviewed-by: Brian Paul --- diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index a0b29d3a540..1dcc1f7fd06 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/src/gallium/state_trackers/dri/drm/dri2.c @@ -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