summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogl_es2/glwidget.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <[email protected]>2014-04-24 14:36:57 +0200
committerThe Qt Project <[email protected]>2014-05-12 10:34:34 +0200
commita57b8409a225ee2597768867c21774647f8e28bc (patch)
treecb5a69b8a7168f0ddbf5ed0a76660f14c180ac58 /examples/opengl/hellogl_es2/glwidget.cpp
parentfd80cad07e9ab98ebb8cd1b056aeabc0aed336ea (diff)
Fix up examples for dynamic opengl builds
Change-Id: Id311b00fe7783a3175dc1c4a38f627c78c470761 Reviewed-by: Jørgen Lind <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'examples/opengl/hellogl_es2/glwidget.cpp')
-rw-r--r--examples/opengl/hellogl_es2/glwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/opengl/hellogl_es2/glwidget.cpp b/examples/opengl/hellogl_es2/glwidget.cpp
index 7267cfd124c..733475d3212 100644
--- a/examples/opengl/hellogl_es2/glwidget.cpp
+++ b/examples/opengl/hellogl_es2/glwidget.cpp
@@ -171,6 +171,8 @@ void GLWidget::paintTexturedCube()
void GLWidget::initializeGL ()
{
+ initializeOpenGLFunctions();
+
glClearColor(0.1f, 0.1f, 0.2f, 1.0f);
glGenTextures(1, &m_uiTexture);