Make it compile with xcomposite_glx.
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Tue, 19 Jul 2011 11:56:22 +0000 (14:56 +0300)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>
Tue, 19 Jul 2011 11:56:22 +0000 (14:56 +0300)
examples/qwidget-compositor/main.cpp
src/qt-compositor/hardware_integration/xcomposite_glx/xcompositeglxintegration.cpp

index 87292af..c0410d2 100644 (file)
@@ -72,7 +72,7 @@ public:
         winId();
 #ifdef QT_COMPOSITOR_WAYLAND_GL
         if (windowHandle()) {
-            windowHandle()->glSurface();
+//            windowHandle()->surfaceHandle();
         }
 #endif
     }
index c518f1c..6421984 100644 (file)
@@ -58,7 +58,7 @@ void XCompositeGLXIntegration::initializeHardware(Wayland::Display *waylandDispl
     XCompositeHandler *handler = new XCompositeHandler(m_compositor->handle(),mDisplay,m_compositor->topLevelWidget());
     waylandDisplay->addGlobalObject(handler->base(), &wl_xcomposite_interface, &XCompositeHandler::xcomposite_interface,XCompositeHandler::send_root_information);
 
-    QGuiGLContext *glContext = new QGuiGLContext(QGuiGLFormat());
+    QGuiGLContext *glContext = new QGuiGLContext(QSurfaceFormat());
 
     m_glxBindTexImageEXT = reinterpret_cast<PFNGLXBINDTEXIMAGEEXTPROC>(glContext->getProcAddress("glXBindTexImageEXT"));
     if (!m_glxBindTexImageEXT) {