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 1011f27..1bce314 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -1623,10 +1623,10 @@
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;