This was if EGL_WL_request_client_buffer_format was defined.
Change-Id: Ic96be10a981b79d0d2f62bc165b57130398c385a
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
int buffer_format = surface ? EGL_SCANOUT_FORMAT_WL : EGL_RENDER_FORMAT_WL;
struct wl_client *client = 0;
if (surface) {
- client = surface->handle()->clientHandle();
+ client = surface->handle()->base()->resource.client;
} else {
WaylandSurface *oldSurface = d->directRenderSurface.data();
if (oldSurface)
- client = oldSurface->handle()->clientHandle();
+ client = oldSurface->handle()->base()->resource.client;
}
if (client)
eglRequestClientBufferFormatWL(d->egl_display, client, buffer_format);