Bug 615753. Let the OpenGL layer manager handle double bufffering. r=vlad, a=blocking

Letting the OpenGL layer manager handle double buffering cleans things up
and makes them work properly.
This commit is contained in:
Jeff Muizelaar 2010-12-07 11:46:39 -05:00
parent 6628765ae9
commit 7fce1fff4d
2 changed files with 1 additions and 3 deletions

View File

@ -1543,7 +1543,7 @@ TRY_AGAIN_NO_SHARING:
if (!glContext->Init())
return nsnull;
#ifdef XP_WIN
#if defined(XP_WIN) || defined(ANDROID)
glContext->SetIsDoubleBuffered(PR_TRUE);
#endif

View File

@ -996,8 +996,6 @@ nsWindow::OnDraw(AndroidGeckoEvent *ae)
DrawTo(nsnull);
if (sGLContext)
sGLContext->SwapBuffers();
sview.EndDrawing();
}
}