mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
dri2: protect dri2FlushFrontBuffer against NULL buffers.
This commit is contained in:
parent
cec2082ae5
commit
3d3ecb8520
1 changed files with 6 additions and 0 deletions
|
|
@ -457,6 +457,12 @@ static void
|
|||
dri2FlushFrontBuffer(__DRIdrawable *driDrawable, void *loaderPrivate)
|
||||
{
|
||||
struct dri2_drawable *pdraw = loaderPrivate;
|
||||
if (!pdraw)
|
||||
return;
|
||||
|
||||
if (!pdraw->base.psc)
|
||||
return;
|
||||
|
||||
struct glx_display *priv = __glXInitialize(pdraw->base.psc->dpy);
|
||||
struct dri2_display *pdp = (struct dri2_display *)priv->dri2Display;
|
||||
struct glx_context *gc = __glXGetCurrentContext();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue