mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1305864 - Catch INVALID_OP from bad-format CopyTexSubImage in ANGLE for now. - r=daoshengmu
MozReview-Commit-ID: 9Hq0pW4xwRN
This commit is contained in:
parent
b22f1cf605
commit
f09cb0082c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user