From 6b5c59435c79bbdafafec4e5c3edef36b722f3cd Mon Sep 17 00:00:00 2001 From: ChiaNing Date: Thu, 6 Aug 2020 16:34:21 +0800 Subject: [PATCH] usevao bug fix for vivo (#7088) --- cocos/core/gfx/webgl/webgl-device.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/core/gfx/webgl/webgl-device.ts b/cocos/core/gfx/webgl/webgl-device.ts index 2d41893abe..888316026e 100644 --- a/cocos/core/gfx/webgl/webgl-device.ts +++ b/cocos/core/gfx/webgl/webgl-device.ts @@ -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; }