aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorRob Bradford <[email protected]>2013-04-10 11:36:24 +0100
committerKristian Høgsberg <[email protected]>2013-05-02 16:46:04 -0400
commit15e64de9e68e99579a0a2fbc80763a5bb64267ea (patch)
treeefef2fbfb51570bfe8f3be5d8857411117354d13 /src/egl
parent396b861ceb4efd50638598cc8092362bd5c14c49 (diff)
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.
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c4
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 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;