projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cf83f9
)
egl/dri2: drop NULL checks prior to dri2_destroy_surface
author
Emil Velikov
<emil.velikov@collabora.com>
Tue, 16 Aug 2016 12:24:48 +0000
(13:24 +0100)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 11:17:18 +0000
(12:17 +0100)
The function already have the respective check within.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/egl_dri2.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/dri2/egl_dri2.c
b/src/egl/drivers/dri2/egl_dri2.c
index cc10e604bbdecb11425f6d986bf39a3ca1272b9f..7fd05f99e3e7cc0f85cb10ce8e2f5dfd364fa503 100644
(file)
--- a/
src/egl/drivers/dri2/egl_dri2.c
+++ b/
src/egl/drivers/dri2/egl_dri2.c
@@
-1291,10
+1291,8
@@
dri2_make_current(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *dsurf,
unbind = (cctx == NULL && ddraw == NULL && rdraw == NULL);
if (unbind || dri2_dpy->core->bindContext(cctx, ddraw, rdraw)) {
- if (old_dsurf)
- dri2_destroy_surface(drv, disp, old_dsurf);
- if (old_rsurf)
- dri2_destroy_surface(drv, disp, old_rsurf);
+ dri2_destroy_surface(drv, disp, old_dsurf);
+ dri2_destroy_surface(drv, disp, old_rsurf);
if (!unbind)
dri2_dpy->ref_count++;