Commit f272117d authored by Cooper Yuan's avatar Cooper Yuan
Browse files

dri2: check if context is valid before flushing the pipe

parent e3be5131
......@@ -49,7 +49,8 @@ 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);
if (ctx)
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