Bug 1305864 - Catch INVALID_OP from bad-format CopyTexSubImage in ANGLE for now. - r=daoshengmu

MozReview-Commit-ID: 9Hq0pW4xwRN
This commit is contained in:
Jeff Gilbert 2016-12-19 17:53:52 -08:00
parent b22f1cf605
commit f09cb0082c

View File

@ -2024,6 +2024,13 @@ DoCopyTexOrSubImage(WebGLContext* webgl, const char* funcName, bool isSubImage,
return false;
}
if (gl->IsANGLE() && error == LOCAL_GL_INVALID_OPERATION) {
webgl->ErrorImplementationBug("%s: ANGLE is particular about CopyTexSubImage"
" formats matching exactly.",
funcName);
return false;
}
MOZ_RELEASE_ASSERT(false, "GFX: We should have caught all other errors.");
webgl->GenerateWarning("%s: Unexpected error during texture copy. Context lost.",
funcName);