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
Родитель 892722fee3
Коммит d766dbc3e9
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

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