-
Creator 版本: 2.4.9
-
目标平台: andriod
-
重现方式:原始打包,创建一个renderTexture,进行两次initWithSize()时,initWithSize函数 if (this._depthStencilBuffer) this._depthStencilBuffer.destroy(); this._depthStencilBuffer.destroy未声明,看了下c++ renderTexture 的确没有destrory 方法
-
首个报错:
-
之前哪个版本是正常的:
-
手机型号:
-
手机浏览器:
-
编辑器操作系统:
-
重现概率:
initWithSize()时候 不传第三个参数 this._depthStencilBuffer就不存在
正确的做法是给原生的 RenderBuffer 类加上 destroy 方法,保持跟 web 一致,而不是在原生上忽略调用 destroy 方法。