aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/openglunderqml/squircle.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/scenegraph/openglunderqml/squircle.h')
-rw-r--r--examples/quick/scenegraph/openglunderqml/squircle.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/quick/scenegraph/openglunderqml/squircle.h b/examples/quick/scenegraph/openglunderqml/squircle.h
index aa50908242..d557339155 100644
--- a/examples/quick/scenegraph/openglunderqml/squircle.h
+++ b/examples/quick/scenegraph/openglunderqml/squircle.h
@@ -44,11 +44,13 @@
#include <QtQuick/QQuickItem>
#include <QtGui/QOpenGLShaderProgram>
+#include <QtGui/QOpenGLFunctions>
//! [1]
-class SquircleRenderer : public QObject {
+class SquircleRenderer : public QObject, protected QOpenGLFunctions
+{
Q_OBJECT
public:
SquircleRenderer() : m_t(0), m_program(0) { }