Drop support for indirect draws on ES
Bug: skia:b/197500792
Change-Id: I0005469352cd44cf4c66aea11de98a0247afd747
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/474397
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index d7e5936..64a76c0 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -680,11 +680,12 @@
fUseClientSideIndirectBuffers = true;
} else {
fBaseVertexBaseInstanceSupport = ctxInfo.hasExtension("GL_EXT_base_instance");
- if (fBaseVertexBaseInstanceSupport) {
- fNativeDrawIndirectSupport = (version >= GR_GL_VER(3,1));
- // Don't use GL_EXT_multi_draw_indirect. It doesn't allow VAO 0.
- // https://github.com/KhronosGroup/OpenGL-Registry/blob/main/extensions/EXT/EXT_multi_draw_indirect.txt#L142
- }
+ // Don't support indirect draws on ES. They don't allow VAO 0.
+ //
+ // "An INVALID_OPERATION error is generated if zero is bound to VERTEX_ARRAY_BINDING,
+ // DRAW_INDIRECT_BUFFER or to any enabled vertex array."
+ //
+ // https://www.khronos.org/registry/OpenGL/specs/es/3.1/es_spec_3.1.pdf
}
fDrawRangeElementsSupport = version >= GR_GL_VER(3,0);
} else if (GR_IS_GR_WEBGL(standard)) {