There was an error while loading. Please reload this page.
1 parent 68a8ded commit 717eb0eCopy full SHA for 717eb0e
1 file changed
src/starling/rendering/Painter.hx
@@ -199,14 +199,18 @@ class Painter
199
* the render context. */
200
public function dispose():Void
201
{
202
+ _stage3D.removeEventListener(Event.CONTEXT3D_CREATE, onContextCreated);
203
_batchProcessorCurr.dispose();
204
_batchProcessorPrev.dispose();
205
_batchProcessorSpec.dispose();
206
207
if (!_shareContext)
208
209
+ for (program in programs)
210
+ program.dispose();
211
+
212
if (_context != null) _context.dispose(false);
- sSharedData = new Map();
213
+ sSharedData.remove(_stage3D);
214
}
215
216
0 commit comments