提交 320fe3ac 编写于 作者: M MiiBond 提交者: Mr.doob

Added binding of dispose event for cube map textures.

上级 5bc44f05
......@@ -6741,6 +6741,8 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( ! texture.image.__webglTextureCube ) {
texture.addEventListener( 'dispose', onTextureDispose );
texture.image.__webglTextureCube = _gl.createTexture();
_this.info.memory.textures ++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册