aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/openglunderqml/squircle.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-06-26 15:08:47 +0200
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-07-01 14:20:49 +0200
commit08f9b552c3735e15f9bf58ab5908652b06e47e88 (patch)
treec36ba328ff34a49af32383dace76be6b4ccd2145 /examples/quick/scenegraph/openglunderqml/squircle.cpp
parent8adc7bad2281596461cbf9557d2ca071113e095d (diff)
Avoid direct GL calls in Qt Quick examples and tests
Change-Id: I204a5513708aeff5cae00d06d4f0c27c20a13ace Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'examples/quick/scenegraph/openglunderqml/squircle.cpp')
-rw-r--r--examples/quick/scenegraph/openglunderqml/squircle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/openglunderqml/squircle.cpp b/examples/quick/scenegraph/openglunderqml/squircle.cpp
index 91d69c90a4..5be12e6b62 100644
--- a/examples/quick/scenegraph/openglunderqml/squircle.cpp
+++ b/examples/quick/scenegraph/openglunderqml/squircle.cpp
@@ -91,6 +91,8 @@ void Squircle::handleWindowChanged(QQuickWindow *win)
void Squircle::paint()
{
if (!m_program) {
+ initializeOpenGLFunctions();
+
m_program = new QOpenGLShaderProgram();
m_program->addShaderFromSourceCode(QOpenGLShader::Vertex,
"attribute highp vec4 vertices;"