[PATCH mesa] wayland: Make eglQueryBufferWL succeed for width and height requests too

Kristian Høgsberg hoegsberg at gmail.com
Thu May 2 13:46:56 PDT 2013


On Wed, Apr 10, 2013 at 11:36:24AM +0100, Rob Bradford wrote:
> From: Rob Bradford <rob at linux.intel.com>
> 
> Following the addition of the EGL_WIDTH and EGL_HEIGHT this function should
> return EGL_TRUE for those requested attributes too.
> ---
>  src/egl/drivers/dri2/egl_dri2.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Thanks, yes, good catch.  Committed.

Kristian

> diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
> index e17d5be..9ab35a3 100644
> --- a/src/egl/drivers/dri2/egl_dri2.c
> +++ b/src/egl/drivers/dri2/egl_dri2.c
> @@ -1480,10 +1480,10 @@ dri2_query_wayland_buffer_wl(_EGLDriver *drv, _EGLDisplay *disp,
>        return EGL_TRUE;
>     case EGL_WIDTH:
>        *value = buffer->buffer.width;
> -      break;
> +      return EGL_TRUE;
>     case EGL_HEIGHT:
>        *value = buffer->buffer.height;
> -      break;
> +      return EGL_TRUE;
>     }
>  
>     return EGL_FALSE;
> -- 
> 1.8.1.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list