summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/dri/drm/dri2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c
index d491e46ab16..908a735234e 100644
--- a/src/gallium/state_trackers/dri/drm/dri2.c
+++ b/src/gallium/state_trackers/dri/drm/dri2.c
@@ -46,6 +46,10 @@
static void
dri2_flush_drawable(__DRIdrawable *draw)
{
+ struct dri_drawable *drawable = dri_drawable(draw);
+ struct dri_context *ctx = dri_get_current(draw->driScreenPriv);
+
+ ctx->st->flush(ctx->st, 0, NULL);
}
static void