зеркало из https://github.com/mozilla/pjs.git
Bug 763190 - WebGL readPixels shouldn't call EnsureBackbufferClearedAsNeeded - r=jgilbert
This commit is contained in:
Родитель
892722fee3
Коммит
d766dbc3e9
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче