Mesa (master): wayland: Make eglQueryBufferWL succeed for width and height requests too

Kristian Høgsberg krh at kemper.freedesktop.org
Thu May 2 21:04:00 UTC 2013


Module: Mesa
Branch: master
Commit: 15e64de9e68e99579a0a2fbc80763a5bb64267ea
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=15e64de9e68e99579a0a2fbc80763a5bb64267ea

Author: Rob Bradford <rob at linux.intel.com>
Date:   Wed Apr 10 11:36:24 2013 +0100

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 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 1011f27..1bce314 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;




More information about the mesa-commit mailing list