projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f80b69
)
egl_dri2: Put the _eglError call in the case switch case
author
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 11 Jan 2012 17:36:37 +0000
(12:36 -0500)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 11 Jan 2012 17:44:58 +0000
(12:44 -0500)
Log an error in case we get an unknown format, not in case for XRGB32.
I botched the edit of Roberts patch.
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 a7ebf599974d6155f0809d253c949f34556dd5be..5fff7e1ccefb2bbf0700117effedfa6ebf8bd72e 100644
(file)
--- a/
src/egl/drivers/dri2/egl_dri2.c
+++ b/
src/egl/drivers/dri2/egl_dri2.c
@@
-1099,11
+1099,11
@@
dri2_create_image_wayland_wl_buffer(_EGLDisplay *disp, _EGLContext *ctx,
format = __DRI_IMAGE_FORMAT_ARGB8888;
break;
case WL_DRM_FORMAT_XRGB32:
- _eglError(EGL_BAD_PARAMETER,
- "dri2_create_image_khr: unsupported wl_buffer format");
format = __DRI_IMAGE_FORMAT_XRGB8888;
break;
default:
+ _eglError(EGL_BAD_PARAMETER,
+ "dri2_create_image_khr: unsupported wl_buffer format");
return NULL;
}