Bug 763190 - WebGL readPixels shouldn't call EnsureBackbufferClearedAsNeeded - r=jgilbert

This commit is contained in:
Benoit Jacob 2012-06-12 17:20:21 -04:00
parent de4a33c534
commit fa0ec2aecb

View File

@ -3933,8 +3933,6 @@ WebGLContext::ReadPixels(WebGLint x, WebGLint y, WebGLsizei width,
// prevent readback of arbitrary video memory through uninitialized renderbuffers!
if (!mBoundFramebuffer->CheckAndInitializeRenderbuffers())
return ErrorInvalidFramebufferOperation("readPixels: incomplete framebuffer");
} else {
EnsureBackbufferClearedAsNeeded();
}
// Now that the errors are out of the way, on to actually reading