Browse Source

Merge pull request #2192 from abow/c2dLeak

fixes #2082
David Catuhe 8 years ago
parent
commit
1be49b38c1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      canvas2D/src/Engine/babylon.group2d.ts

+ 2 - 0
canvas2D/src/Engine/babylon.group2d.ts

@@ -558,6 +558,8 @@
                     }
                 }
 
+                this._renderableData._primDirtyList.length = 0;
+                
                 // Restore saved states
                 engine.setAlphaTesting(curAlphaTest);
                 engine.setDepthWrite(curDepthWrite);