Fixes scene scaling glitches when window is resized.