diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-06 11:14:13 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-06 11:17:05 (GMT) |
commit | 49c941e5f34a20b05f0f40914a8224e433d5e4e8 (patch) | |
tree | d56651d0992ac76b2f9366f19287cb3241432ebd /src/3rdparty/phonon | |
parent | e70168edd89a0161955866e9acc32bb766d9f147 (diff) | |
download | Qt-49c941e5f34a20b05f0f40914a8224e433d5e4e8.zip Qt-49c941e5f34a20b05f0f40914a8224e433d5e4e8.tar.gz Qt-49c941e5f34a20b05f0f40914a8224e433d5e4e8.tar.bz2 |
Fix Phonon's video renderer on windows with opengl
Now we use opengl 2.
Reviewed-by: Samuel
Diffstat (limited to 'src/3rdparty/phonon')
-rw-r--r-- | src/3rdparty/phonon/ds9/videorenderer_soft.cpp | 7 |
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 |