call resize method after quitting play mode to prevent a bug that caused the viewport to be half width in 3d mode