aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/textureinthread/threadrenderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/scenegraph/textureinthread/threadrenderer.cpp')
-rw-r--r--examples/quick/scenegraph/textureinthread/threadrenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/scenegraph/textureinthread/threadrenderer.cpp b/examples/quick/scenegraph/textureinthread/threadrenderer.cpp
index 7ae47108f1..270a7f4323 100644
--- a/examples/quick/scenegraph/textureinthread/threadrenderer.cpp
+++ b/examples/quick/scenegraph/textureinthread/threadrenderer.cpp
@@ -93,14 +93,14 @@ public slots:
}
m_renderFbo->bind();
- glViewport(0, 0, m_size.width(), m_size.height());
+ context->functions()->glViewport(0, 0, m_size.width(), m_size.height());
m_logoRenderer->render();
// We need to flush the contents to the FBO before posting
// the texture to the other thread, otherwise, we might
// get unexpected results.
- glFlush();
+ context->functions()->glFlush();
m_renderFbo->bindDefault();
qSwap(m_renderFbo, m_displayFbo);