mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
glx: Add missing null check in gxl/dri2_glx.c
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
b8875cb7c8
commit
03ef57950a
1 changed files with 4 additions and 0 deletions
|
|
@ -676,6 +676,10 @@ dri2FlushFrontBuffer(__DRIdrawable *driDrawable, void *loaderPrivate)
|
|||
psc = (struct dri2_screen *) pdraw->base.psc;
|
||||
|
||||
priv = __glXInitialize(psc->base.dpy);
|
||||
|
||||
if (priv == NULL)
|
||||
return;
|
||||
|
||||
pdp = (struct dri2_display *) priv->dri2Display;
|
||||
gc = __glXGetCurrentContext();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue