mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 697845 - only call glFinish in RenderLayer, not in UpdateSurface - r=mattwoodrow
This could make WebGL a bit faster.
This commit is contained in:
parent
df85001523
commit
8a7cb1453a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user