mirror of
https://github.com/photonstorm/phaser
synced 2025-02-18 06:58:30 +00:00
Clear the render list if not destroying the camera
This commit is contained in:
parent
3db77c7a10
commit
5481a64023
1 changed files with 4 additions and 0 deletions
|
@ -557,6 +557,10 @@ var CameraManager = new Class({
|
|||
{
|
||||
cameras[index].destroy();
|
||||
}
|
||||
else
|
||||
{
|
||||
cameras[index].renderList = [];
|
||||
}
|
||||
|
||||
cameras.splice(index, 1);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue