glx: Remove redundant null check.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 19 Sep 2019 14:50:08 +0000 (16:50 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 19 Sep 2019 15:11:10 +0000 (15:11 +0000)
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/64
Reviewed-by: Adam Jackson <ajax@redhat.com>
src/glx/dri2_glx.c

index d6a543c8da0c5361808272b84354bd90b84bbe78..bed25bb38d609b40334234d270c2bf4188a42c15 100644 (file)
@@ -1018,7 +1018,7 @@ dri2InvalidateBuffers(Display *dpy, XID drawable)
 
    psc = (struct dri2_screen *) pdraw->psc;
 
-   if (pdraw && psc->f && psc->f->base.version >= 3 && psc->f->invalidate)
+   if (psc->f && psc->f->base.version >= 3 && psc->f->invalidate)
        psc->f->invalidate(pdp->driDrawable);
 }