Fixed issue where GUI artifacts may appear when game is paused and window is resized.