mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
6628765ae9
commit
7fce1fff4d
@ -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
|
||||
|
||||
|
@ -996,8 +996,6 @@ nsWindow::OnDraw(AndroidGeckoEvent *ae)
|
||||
|
||||
DrawTo(nsnull);
|
||||
|
||||
if (sGLContext)
|
||||
sGLContext->SwapBuffers();
|
||||
sview.EndDrawing();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user