summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-11-09 08:28:40 (GMT)
committeraxis <qt-info@nokia.com>2009-11-09 08:28:40 (GMT)
commit7fdfa58b958b658feb7b20dd7a7322d235fe4bea (patch)
tree6c38ed48f7c234ad480aa8ce178b9a00b14d2440 /src/3rdparty/phonon
parent7ea04bf5c065a037b2db667572e1947f1a1b8b2e (diff)
parent68409c24211b4639832ce86113c33a247bb68950 (diff)
downloadQt-7fdfa58b958b658feb7b20dd7a7322d235fe4bea.zip
Qt-7fdfa58b958b658feb7b20dd7a7322d235fe4bea.tar.gz
Qt-7fdfa58b958b658feb7b20dd7a7322d235fe4bea.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6-s60
Conflicts: src/gui/painting/qblendfunctions.cpp
Diffstat (limited to 'src/3rdparty/phonon')
-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