<!--index.wxml-->
<canvas type="webgl" id="myCanvas"></canvas>
//index.js
onReady() {
const query = wx.createSelectorQuery()
query.select('#myCanvas').node().exec((res) => {
const canvas = res[0].node
const gl = canvas.getContext('webgl')
var ext = gl.getExtension('WEBGL_depth_texture');
const version = wx.getSystemInfoSync().SDKVersion
console.log(ext)
console.log(version)
})
}
期望:ios 、安卓、工具都返回 ext对象(var ext = gl.getExtension('WEBGL_depth_texture');)
实际: ios、工具正常返回,安卓返回“null”
(开发工具截图)
目前是这样的哦
请具体描述问题出现的流程,并提供能复现问题的简单代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
(补充 安卓端截图,微信版本 7.0.15)