summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-11-06 11:18:57 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-11-06 11:18:57 (GMT)
commita492f18c37e985940bacd4fa283cfbd5ee01ddf6 (patch)
treeede9e86385c974fc4176c3244e82513e8232f561
parent461f7037d2ae6b3d97e49ff2729d594c9221309f (diff)
parent49c941e5f34a20b05f0f40914a8224e433d5e4e8 (diff)
downloadQt-a492f18c37e985940bacd4fa283cfbd5ee01ddf6.zip
Qt-a492f18c37e985940bacd4fa283cfbd5ee01ddf6.tar.gz
Qt-a492f18c37e985940bacd4fa283cfbd5ee01ddf6.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-widget-team into 4.6
-rw-r--r--src/3rdparty/phonon/ds9/videorenderer_soft.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/3rdparty/phonon/ds9/videorenderer_soft.cpp b/src/3rdparty/phonon/ds9/videorenderer_soft.cpp
index 82d6235..f7d42cf 100644
--- a/src/3rdparty/phonon/ds9/videorenderer_soft.cpp
+++ b/src/3rdparty/phonon/ds9/videorenderer_soft.cpp
@@ -661,7 +661,10 @@ namespace Phonon
#ifndef QT_NO_OPENGL
- if (painter.paintEngine() && painter.paintEngine()->type() == QPaintEngine::OpenGL && checkGLPrograms()) {
+ if (painter.paintEngine() &&
+ (painter.paintEngine()->type() == QPaintEngine::OpenGL || painter.paintEngine()->type() == QPaintEngine::OpenGL2)
+ && checkGLPrograms()) {
+
//for now we only support YUV (both YV12 and YUY2)
updateTexture();
@@ -673,6 +676,7 @@ namespace Phonon
}
//let's draw the texture
+ painter.beginNativePainting();
//Let's pass the other arguments
const Program prog = (m_inputPin->connectedType().subtype == MEDIASUBTYPE_YV12) ? YV12toRGB : YUY2toRGB;
@@ -722,6 +726,7 @@ namespace Phonon
glDisableClientState(GL_VERTEX_ARRAY);
glDisable(GL_FRAGMENT_PROGRAM_ARB);
+ painter.endNativePainting();
return;
} else
#endif