Fixed #1615 fix a bug of cc.Director for CANVAS