mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
dri/nouveau: fix crash in nouveau_flush
https://bugs.freedesktop.org/show_bug.cgi?id=61947 Note: this is a candidate for the stable branches
This commit is contained in:
parent
057c46d791
commit
17f1cb1d99
1 changed files with 2 additions and 1 deletions
|
|
@ -69,7 +69,8 @@ nouveau_flush(struct gl_context *ctx)
|
|||
__DRIdri2LoaderExtension *dri2 = screen->dri2.loader;
|
||||
__DRIdrawable *drawable = nctx->dri_context->driDrawablePriv;
|
||||
|
||||
dri2->flushFrontBuffer(drawable, drawable->loaderPrivate);
|
||||
if (drawable && drawable->loaderPrivate)
|
||||
dri2->flushFrontBuffer(drawable, drawable->loaderPrivate);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue