From: Rob Bradford Date: Wed, 10 Apr 2013 10:36:24 +0000 (+0100) Subject: wayland: Make eglQueryBufferWL succeed for width and height requests too X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15e64de9e68e99579a0a2fbc80763a5bb64267ea;p=mesa.git wayland: Make eglQueryBufferWL succeed for width and height requests too Following the addition of the EGL_WIDTH and EGL_HEIGHT this function should return EGL_TRUE for those requested attributes too. --- diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 1011f27665a..1bce314fa99 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -1623,10 +1623,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;