Bug 1679693 - Update WebGL 2 to allow drawArraysInstanced with no non-instanced active attribs. r=lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D98112
This commit is contained in:
Jeff Gilbert
2020-11-29 17:51:10 +00:00
parent ad08e1f290
commit 971daa542c

View File

@@ -682,7 +682,7 @@ webgl::LinkedProgramInfo::GetDrawFetchLimits() const {
}
}
if (hasActiveAttrib && !hasActiveDivisor0) {
if (!webgl->IsWebGL2() && hasActiveAttrib && !hasActiveDivisor0) {
webgl->ErrorInvalidOperation(
"One active vertex attrib (if any are active)"
" must have a divisor of 0.");