{
Q_OBJECT
public:
- QmlCompositor() : WaylandCompositor(this, const_cast<QGLContext *>(QGLContext::currentContext())) {
+ QmlCompositor() : WaylandCompositor(this, const_cast<QOpenGLContext *>(QOpenGLContext::currentContext())) {
//setMouseTracking(true);
setSource(QUrl(QLatin1String("qrc:qml/QmlCompositor/main.qml")));
setResizeMode(QSGView::SizeRootObjectToView);
#include "wayland-xcomposite-server-protocol.h"
#include <QtGui/QPlatformNativeInterface>
-#include <QtGui/QGuiGLContext>
+#include <QtGui/QOpenGLContext>
#include "xcompositebuffer.h"
#include "xcompositehandler.h"
XCompositeHandler *handler = new XCompositeHandler(m_compositor->handle(),mDisplay,m_compositor->window());
waylandDisplay->addGlobalObject(handler->base(), &wl_xcomposite_interface, &XCompositeHandler::xcomposite_interface,XCompositeHandler::send_root_information);
- QGuiGLContext *glContext = new QGuiGLContext();
+ QOpenGLContext *glContext = new QOpenGLContext();
+ glContext->create();
m_glxBindTexImageEXT = reinterpret_cast<PFNGLXBINDTEXIMAGEEXTPROC>(glContext->getProcAddress("glXBindTexImageEXT"));
if (!m_glxBindTexImageEXT) {