Bug 592462 - fix fullscreen video with OpenGL on Maemo with Qt. r=jmuizelaar. a=blocking-fennec

--HG--
extra : rebase_source : 765979328a5337242c9b7a8bd837b92ed2ed4062
This commit is contained in:
Vladimir Vukicevic 2010-09-09 16:41:02 -07:00
parent 2f04ed9a59
commit 0031e81e55
3 changed files with 8 additions and 0 deletions

View File

@ -515,6 +515,7 @@ LayerManagerOGL::Render()
// Default blend function implements "OVER"
mGLContext->fBlendFuncSeparate(LOCAL_GL_ONE, LOCAL_GL_ONE_MINUS_SRC_ALPHA,
LOCAL_GL_ONE, LOCAL_GL_ONE);
mGLContext->fEnable(LOCAL_GL_BLEND);
DEBUG_GL_ERROR_CHECK(mGLContext);

View File

@ -146,6 +146,8 @@ ThebesLayerBufferOGL::RenderTo(const nsIntPoint& aOffset,
aManager->GetBasicLayerProgram(mLayer->CanUseOpaqueSurface(),
mTexImage->IsRGB());
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
if (!mTexImage->InUpdate() || !mTexImage->EndUpdate()) {
gl()->fBindTexture(LOCAL_GL_TEXTURE_2D, mTexImage->Texture());
}

View File

@ -341,6 +341,11 @@ nsWindow::Destroy(void)
NS_IF_RELEASE(gMenuRollup);
}
if (mLayerManager) {
mLayerManager->Destroy();
}
mLayerManager = nsnull;
Show(PR_FALSE);
// walk the list of children and call destroy on them. Have to be