Fixed a bug where the perspective matrix wouldn't update.