Bug 1764589 - Remove vertex_array_object extension requirement for WebGL. r=gfx-reviewers,jgilbert

There are some Android devices which support GLES 2 but do not support
the vertex_array_object extension, and we therefore do not give them
WebGL 1.

This requirement was added in bug 1322746. as part of some changes to
GLBlitHelper which required VAOs. However, in bug 1396704 a fallback
path was added to GLBlitHelper which does not require VAOs. The WebGL
implementation can make use of the WebGLVertexArrayFake fallback path
on devices without VAO support, meaning this requirement can be
dropped.

Differential Revision: https://phabricator.services.mozilla.com/D145422
This commit is contained in:
Jamie Nicol 2022-05-25 11:38:01 +00:00
Родитель b12dadc254
Коммит 556d4cfd0a
1 изменённых файлов: 0 добавлений и 6 удалений

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

@ -529,12 +529,6 @@ bool WebGLContext::InitAndValidateGL(FailureReason* const out_failReason) {
return false;
}
if (!gl->IsSupported(gl::GLFeature::vertex_array_object)) {
*out_failReason = {"FEATURE_FAILURE_WEBGL_VAOS",
"Requires vertex_array_object."};
return false;
}
// OpenGL core profiles remove the default VAO object from version
// 4.0.0. We create a default VAO for all core profiles,
// regardless of version.