Răsfoiți Sursa

fixed memory leak with filter stack

Nicolas Cannasse 3 ani în urmă
părinte
comite
727b3b3ce2
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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.
 		Finalizes Filter rendering and removes top-most Object from filter stack.
 	**/
 	**/
 	public function popFilter() {
 	public function popFilter() {
+		inFilter.spr = null;
 		filterStackIndex--;
 		filterStackIndex--;
 		if( filterStackIndex > 0 ) {
 		if( filterStackIndex > 0 ) {
 			inFilter = filterStack[filterStackIndex - 1];
 			inFilter = filterStack[filterStackIndex - 1];