summaryrefslogtreecommitdiffstats
path: root/src/imports/multimedia/qsgvideonode_i420.cpp
diff options
context:
space:
mode:
authorMichael Goddard <michael.goddard@nokia.com>2011-09-22 12:28:40 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-22 04:36:07 +0200
commitdb79e086756a25e984247bf73c9032bd5367aca9 (patch)
tree7cb485e8307e9e5264bf9c030ddc74f2f92d6b5e /src/imports/multimedia/qsgvideonode_i420.cpp
parent9a3237d53332f48cc2e3c2910ed10b4e974d42bc (diff)
Remove older QGLContext calls in favour of new QOpenGLContext.
Change-Id: I2669f48ebac5c14f5aaf85135f3d0adbf541d877 Reviewed-on: http://codereview.qt-project.org/5339 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Diffstat (limited to 'src/imports/multimedia/qsgvideonode_i420.cpp')
-rw-r--r--src/imports/multimedia/qsgvideonode_i420.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/multimedia/qsgvideonode_i420.cpp b/src/imports/multimedia/qsgvideonode_i420.cpp
index c6970a5bd..11135c14b 100644
--- a/src/imports/multimedia/qsgvideonode_i420.cpp
+++ b/src/imports/multimedia/qsgvideonode_i420.cpp
@@ -255,7 +255,7 @@ void QSGVideoNode_I420::setCurrentFrame(const QVideoFrame &frame)
void QSGVideoNode_I420::bindTexture(int id, int unit, int w, int h, const uchar *bits)
{
- QGLFunctions *functions = QGLContext::currentContext()->functions();
+ QOpenGLFunctions *functions = QOpenGLContext::currentContext()->functions();
functions->glActiveTexture(unit);
glBindTexture(GL_TEXTURE_2D, id);
glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, w, h, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, bits);