usevao bug fix for vivo (#7088)

This commit is contained in:
ChiaNing
2020-08-06 16:34:21 +08:00
committed by GitHub
parent 77186a5c5b
commit 6b5c59435c
+1 -1
View File
@@ -348,7 +348,7 @@ export class WebGLGFXDevice extends GFXDevice {
// earlier runtime VAO implementations doesn't work
if (RUNTIME_BASED) {
// @ts-ignore
if (typeof loadRuntime !== 'function' || typeof loadRuntime().getFeature !== 'function' || loadRuntime()
if (typeof loadRuntime !== 'function' || !loadRuntime() || typeof loadRuntime().getFeature !== 'function' || loadRuntime()
.getFeature('webgl.extensions.oes_vertex_array_object.revision') <= 0) {
this._OES_vertex_array_object = null;
}