summaryrefslogtreecommitdiffstats
path: root/examples/opengl/textures/glwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/textures/glwidget.cpp')
-rw-r--r--examples/opengl/textures/glwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/opengl/textures/glwidget.cpp b/examples/opengl/textures/glwidget.cpp
index ac1e7965af..305ca1aa4c 100644
--- a/examples/opengl/textures/glwidget.cpp
+++ b/examples/opengl/textures/glwidget.cpp
@@ -83,6 +83,8 @@ void GLWidget::setClearColor(const QColor &color)
void GLWidget::initializeGL()
{
+ initializeOpenGLFunctions();
+
makeObject();
glEnable(GL_DEPTH_TEST);