diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-08-04 12:50:36 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-08-04 12:51:26 -0400 |
commit | 2542d8e0c2ec3eb4de266c0b2ad93dba918cb89c (patch) | |
tree | 981b7caa988ab106a57c9affc5842d7ef86d5951 /src/glx | |
parent | e3a0e468bc67e4169406bb4c96b5ab483dc48a28 (diff) |
glx: Move deref after NULL check
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/dri2_glx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 99384f8c37..ff48c79c27 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -657,9 +657,10 @@ dri2_bind_tex_image(Display * dpy, struct dri2_drawable *pdraw = (struct dri2_drawable *) base; struct dri2_display *pdp = (struct dri2_display *) dpyPriv->dri2Display; - struct dri2_screen *psc = (struct dri2_screen *) base->psc; + struct dri2_screen *psc; if (pdraw != NULL) { + psc = (struct dri2_screen *) base->psc; #if __DRI2_FLUSH_VERSION >= 3 if (!pdp->invalidateAvailable && psc->f) |