From 15e64de9e68e99579a0a2fbc80763a5bb64267ea Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 10 Apr 2013 11:36:24 +0100 Subject: [PATCH] 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. --- src/egl/drivers/dri2/egl_dri2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2