浏览代码

fixed memory leak with filter stack

Nicolas Cannasse 3 年之前
父节点
当前提交
727b3b3ce2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      h2d/RenderContext.hx

+ 1 - 0
h2d/RenderContext.hx

@@ -345,6 +345,7 @@ class RenderContext extends h3d.impl.RenderContext {
 		Finalizes Filter rendering and removes top-most Object from filter stack.
 	**/
 	public function popFilter() {
+		inFilter.spr = null;
 		filterStackIndex--;
 		if( filterStackIndex > 0 ) {
 			inFilter = filterStack[filterStackIndex - 1];