зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1618325 - Check IsContextLost in ReadPixels. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D65435 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
8ffc35b01e
Коммит
744ecc654e
|
@ -3980,6 +3980,8 @@ void ClientWebGLContext::ReadPixels(GLint x, GLint y, GLsizei width,
|
|||
|
||||
bool ClientWebGLContext::ReadPixels_SharedPrecheck(
|
||||
CallerType aCallerType, ErrorResult& out_error) const {
|
||||
if (IsContextLost()) return false;
|
||||
|
||||
if (mCanvasElement && mCanvasElement->IsWriteOnly() &&
|
||||
aCallerType != CallerType::System) {
|
||||
JsWarning("readPixels: Not allowed");
|
||||
|
|
Загрузка…
Ссылка в новой задаче