[PATCH mesa] wayland: Make eglQueryBufferWL succeed for width and height requests too
Rob Bradford
robert.bradford at intel.com
Wed Apr 10 03:36:24 PDT 2013
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(-)
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
More information about the wayland-devel
mailing list