提交 8887aa05 编写于 作者: O Olivier Chatry 提交者: Mr.doob

Clear opaque and transparent array in WebGLRenderer.dispose (#8987) (#9011)

上级 52d172db
......@@ -517,6 +517,11 @@ THREE.WebGLRenderer = function ( parameters ) {
this.dispose = function() {
transparentObjects = [];
transparentObjectsLastIndex = -1;
opaqueObjects = [];
opaqueObjectsLastIndex = -1;
_canvas.removeEventListener( 'webglcontextlost', onContextLost, false );
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册