Fixes a viewport resizing bug when post-processing is enabled