Bug 697845 - only call glFinish in RenderLayer, not in UpdateSurface - r=mattwoodrow

This could make WebGL a bit faster.
This commit is contained in:
Benoit Jacob 2011-10-29 19:15:52 -04:00
parent 3607fe66aa
commit b9688f7857

View File

@ -172,10 +172,6 @@ CanvasLayerOGL::UpdateSurface()
}
#endif
if (mCanvasGLContext) {
mCanvasGLContext->MakeCurrent();
mCanvasGLContext->fFinish();
}
mOGLManager->MakeCurrent();
if (mCanvasGLContext &&
@ -238,7 +234,7 @@ CanvasLayerOGL::RenderLayer(int aPreviousDestination,
if (useGLContext) {
mCanvasGLContext->MakeCurrent();
mCanvasGLContext->fFlush();
mCanvasGLContext->fFinish();
gl()->MakeCurrent();
gl()->BindTex2DOffscreen(mCanvasGLContext);