projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91ea603
)
egl_dri2: Return NULL when xcb_get_geometry_reply fails.
author
Chia-I Wu
<olv@lunarg.com>
Sun, 20 Feb 2011 19:23:54 +0000
(12:23 -0700)
committer
Chia-I Wu
<olv@lunarg.com>
Sun, 20 Feb 2011 19:26:31 +0000
(12:26 -0700)
This should fix bug #33946.
src/egl/drivers/dri2/platform_x11.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/dri2/platform_x11.c
b/src/egl/drivers/dri2/platform_x11.c
index
1c7c841
..
50310ee
100644
(file)
--- a/
src/egl/drivers/dri2/platform_x11.c
+++ b/
src/egl/drivers/dri2/platform_x11.c
@@
-782,6
+782,7
@@
dri2_create_image_khr_pixmap(_EGLDisplay *disp, _EGLContext *ctx,
_eglError(EGL_BAD_ALLOC, "xcb_get_geometry");
free(error);
free(buffers_reply);
+ return NULL;
}
switch (geometry_reply->depth) {