mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
usevao bug fix for vivo (#7088)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user