Mesa (master): glx: Remove redundant null check.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Sep 19 15:45:55 UTC 2019


Module: Mesa
Branch: master
Commit: ec76232785f13042cf7ae4298a1e997e781d27a0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ec76232785f13042cf7ae4298a1e997e781d27a0

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Thu Sep 19 16:50:08 2019 +0200

glx: Remove redundant null check.

Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/64
Reviewed-by: Adam Jackson <ajax at redhat.com>

---

 src/glx/dri2_glx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index d6a543c8da0..bed25bb38d6 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -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);
 }
 




More information about the mesa-commit mailing list