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.
This commit is contained in:
Rob Bradford 2013-04-10 11:36:24 +01:00 committed by Kristian Høgsberg
parent 396b861ceb
commit 15e64de9e6
1 changed files with 2 additions and 2 deletions

View File

@ -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;