Skip to content

Commit 5481a64

Browse files
committed
Clear the render list if not destroying the camera
1 parent 3db77c7 commit 5481a64

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/cameras/2d/CameraManager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,10 @@ var CameraManager = new Class({
557557
{
558558
cameras[index].destroy();
559559
}
560+
else
561+
{
562+
cameras[index].renderList = [];
563+
}
560564

561565
cameras.splice(index, 1);
562566

0 commit comments

Comments
 (0)