Replaced missed instance of Wayland::Surface->clientHandle()
authorAndy Nichols <andy.nichols@nokia.com>
Thu, 12 Jan 2012 18:24:28 +0000 (19:24 +0100)
committerPaul Olav Tvete <paul.tvete@nokia.com>
Fri, 13 Jan 2012 08:22:46 +0000 (09:22 +0100)
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>
src/compositor/hardware_integration/wayland_egl/waylandeglintegration.cpp

index a580847..b62a75b 100644 (file)
@@ -206,11 +206,11 @@ bool WaylandEglIntegration::setDirectRenderSurface(WaylandSurface *surface)
     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);