diff options
author | Kristian Høgsberg <[email protected]> | 2012-01-11 12:36:37 -0500 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2012-01-11 12:44:58 -0500 |
commit | 513d1feee46d05b71094c60ee09fa263867f25b7 (patch) | |
tree | 66d466eba27f2512863d7ab974513fa57656a5b6 /src/egl/drivers | |
parent | 3f80b69b5f2093ffc624bb901ce34f0e289bc25d (diff) |
egl_dri2: Put the _eglError call in the case switch case
Log an error in case we get an unknown format, not in case for XRGB32.
I botched the edit of Roberts patch.
Diffstat (limited to 'src/egl/drivers')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index a7ebf599974..5fff7e1ccef 100644 --- 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; } |