Use QOpenGLFunctions in qwindow-compositor.
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Mon, 9 Jan 2012 09:19:56 +0000 (11:19 +0200)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>
Mon, 9 Jan 2012 10:14:45 +0000 (11:14 +0100)
To keep it building with desktop OpenGL.

Change-Id: I82685926461fc3249ed7a53e741b653273fe6f5c
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
examples/qwindow-compositor/qwindowcompositor.cpp
examples/qwindow-compositor/qwindowcompositor.h

index 7a61804..b88dcf5 100644 (file)
@@ -14,14 +14,14 @@ QWindowCompositor::QWindowCompositor(QOpenGLWindow *window)
     enableSubSurfaceExtension();
     m_window->makeCurrent();
 
+    initializeGLFunctions();
+
     m_textureCache = new QOpenGLTextureCache(m_window->context());
     m_textureBlitter = new TextureBlitter();
     m_backgroundImage = QImage(QLatin1String(":/background.jpg"));
     m_renderScheduler.setSingleShot(true);
     connect(&m_renderScheduler,SIGNAL(timeout()),this,SLOT(render()));
 
-
-
     glGenFramebuffers(1,&m_surface_fbo);
 
     window->installEventFilter(this);
index a061ea8..de01c52 100644 (file)
@@ -7,10 +7,10 @@
 #include "qopenglwindow.h"
 
 #include <QtGui/private/qopengltexturecache_p.h>
-
 #include <QObject>
+#include <QOpenGLFunctions>
 
-class QWindowCompositor : public QObject, public WaylandCompositor
+class QWindowCompositor : public QObject, public WaylandCompositor, protected QOpenGLFunctions
 {
     Q_OBJECT
 public: