summaryrefslogtreecommitdiffstats
path: root/tests/manual/qopengltextureblitter
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-01-15 14:02:57 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-01-15 15:35:11 +0100
commit23f663cad6a68a7af8e8adde4f25b3cae5f14b0e (patch)
treeb719014647c894a38bd04fcb2e5798ac9c07b2c8 /tests/manual/qopengltextureblitter
parentf342bf25336ef2befd0575e1b76477c088549c26 (diff)
Fix compilation of manual Open GL tests with Dynamic GL.
Change-Id: Iffd57f26dfc9d6a00cab855270207fc4da7eb1ab Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'tests/manual/qopengltextureblitter')
-rw-r--r--tests/manual/qopengltextureblitter/qopengltextureblitwindow.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/manual/qopengltextureblitter/qopengltextureblitwindow.cpp b/tests/manual/qopengltextureblitter/qopengltextureblitwindow.cpp
index e2b2373e76..bdae3751e7 100644
--- a/tests/manual/qopengltextureblitter/qopengltextureblitwindow.cpp
+++ b/tests/manual/qopengltextureblitter/qopengltextureblitwindow.cpp
@@ -35,6 +35,7 @@
#include <QtGui/QPainter>
#include <QtGui/QOpenGLTexture>
+#include <QtGui/QOpenGLFunctions>
#include <QtGui/QMatrix4x4>
#include <QtCore/QCoreApplication>
@@ -67,10 +68,11 @@ void QOpenGLTextureBlitWindow::render()
m_context->makeCurrent(this);
QRect viewport(0,0,dWidth(),dHeight());
- glViewport(0,0,dWidth(), dHeight());
+ QOpenGLFunctions *functions = m_context->functions();
+ functions->glViewport(0,0,dWidth(), dHeight());
- glClearColor(0.f, .6f, .0f, 0.f);
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ functions->glClearColor(0.f, .6f, .0f, 0.f);
+ functions->glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
QOpenGLTexture texture(m_image);
texture.setWrapMode(QOpenGLTexture::ClampToEdge);