Fix lighting when window is resized