Kaynağa Gözat

fixed memory leak with filter stack

Nicolas Cannasse 3 yıl önce
ebeveyn
işleme
727b3b3ce2
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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];