[LayaAirIDE 2.0]引擎是否可以针对支持webgl2的机型做自动切换为webgl

部分机型下会出现
this._gl.createVertexArray is not a function. (In 'this._gl.createVertexArray()', 'this._gl.createVertexArray' is undefined);at requestAnimationFrame callback function
 
这种情况这边判断是不支持webgl2,是否又方法直接判断手机是否支持webgl2
已邀请:

小小泽

赞同来自:

是支持的。用config.useWebgl2这个属性判断,引擎默认为true

要回复问题请先

商务合作
商务合作