summaryrefslogtreecommitdiffstats
path: root/examples/opengl/textures/glwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/textures/glwidget.h')
-rw-r--r--examples/opengl/textures/glwidget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/opengl/textures/glwidget.h b/examples/opengl/textures/glwidget.h
index fee47b9b48..b210b0fd8f 100644
--- a/examples/opengl/textures/glwidget.h
+++ b/examples/opengl/textures/glwidget.h
@@ -43,10 +43,11 @@
#include <QtWidgets>
#include <QGLWidget>
+#include <QOpenGLFunctions>
QT_FORWARD_DECLARE_CLASS(QGLShaderProgram);
-class GLWidget : public QGLWidget
+class GLWidget : public QGLWidget, protected QOpenGLFunctions
{
Q_OBJECT