mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
dri2: check if context is valid before flushing the pipe
This commit is contained in:
parent
e3be513118
commit
f272117def
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue