зеркало из https://github.com/mozilla/pjs.git
Bug 708124 - Remove unnecessary glFlushs from Layers - r=bjacob
This commit is contained in:
Родитель
31b31c80ce
Коммит
31be7199ca
|
@ -1140,10 +1140,6 @@ BasicCanvasLayer::UpdateSurface(gfxASurface* aDestSurface)
|
|||
|
||||
NS_ASSERTION(isurf->Stride() == mBounds.width * 4, "gfxImageSurface stride isn't what we expect!");
|
||||
|
||||
// We have to flush to ensure that any buffered GL operations are
|
||||
// in the framebuffer before we read.
|
||||
mGLContext->fFlush();
|
||||
|
||||
PRUint32 currentFramebuffer = 0;
|
||||
|
||||
mGLContext->fGetIntegerv(LOCAL_GL_FRAMEBUFFER_BINDING, (GLint*)¤tFramebuffer);
|
||||
|
|
|
@ -181,10 +181,6 @@ CanvasLayerD3D10::UpdateSurface()
|
|||
|
||||
mGLContext->MakeCurrent();
|
||||
|
||||
// We have to flush to ensure that any buffered GL operations are
|
||||
// in the framebuffer before we read.
|
||||
mGLContext->fFlush();
|
||||
|
||||
PRUint32 currentFramebuffer = 0;
|
||||
|
||||
mGLContext->fGetIntegerv(LOCAL_GL_FRAMEBUFFER_BINDING, (GLint*)¤tFramebuffer);
|
||||
|
|
|
@ -119,10 +119,6 @@ CanvasLayerD3D9::UpdateSurface()
|
|||
|
||||
mGLContext->MakeCurrent();
|
||||
|
||||
// We have to flush to ensure that any buffered GL operations are
|
||||
// in the framebuffer before we read.
|
||||
mGLContext->fFlush();
|
||||
|
||||
PRUint32 currentFramebuffer = 0;
|
||||
|
||||
mGLContext->fGetIntegerv(LOCAL_GL_FRAMEBUFFER_BINDING, (GLint*)¤tFramebuffer);
|
||||
|
|
Загрузка…
Ссылка в новой задаче