Commit 9b784069 authored by Cooper Yuan's avatar Cooper Yuan
Browse files

dri2: add code to dri2_Flush extension.

It's going to flush client's commands in eglWaitClient(). Before this,
egl applications using pixmap or pbuffer flicker because of no flush.

Reviewed-by: Alan Hourihane
parent a313c29c
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment