egret-labs/egret3d

material.setTexture("map", texture) 报错

molephill opened this issue · 1 comments

引擎用的 5.2.19
最新的egret3d代码
material.setTexture("map", texture) 时报 TypeError: Cannot read property 'extensions' of undefined

发现是 await RES.getResAsync("XXX") as egret3d.Texture 获取出来的 egret3d.Texture才会有问题。
egret3d.Texture.createColorTexture("red", 1, 0, 0)创建出来的纹理没问题。