diff options
author | Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> | 2013-12-02 07:30:00 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2013-12-03 14:35:41 -0700 |
commit | 03ef57950a8c8e69043a87511693ba8bdf4a73be (patch) | |
tree | 16f800503c812d2df497ecf3df12cb4f32e3a542 | |
parent | b8875cb7c822ad366625a532dd9209d1647771af (diff) |
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>
-rw-r--r-- | src/glx/dri2_glx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 3b333120cb..bfeebed9dd 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -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(); |