Browse Source

dri2: check if context is valid before flushing the pipe

tags/mesa-8.0-rc1
Cooper Yuan 14 years ago
parent
commit
f272117def
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/gallium/state_trackers/dri/drm/dri2.c

+ 2
- 1
src/gallium/state_trackers/dri/drm/dri2.c View File

@@ -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

Loading…
Cancel
Save