render: Fix logic for resolution changes

This commit is contained in:
Nathan Adams 2020-10-18 00:16:42 +02:00 committed by Mike Welsh
parent 20ff951d5e
commit bf4ed7cc22
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ impl Globals {
}
pub fn set_resolution(&mut self, viewport_width: u32, viewport_height: u32) {
if viewport_width != self.viewport_width && viewport_height != self.viewport_height {
if viewport_width != self.viewport_width || viewport_height != self.viewport_height {
self.viewport_width = viewport_width;
self.viewport_height = viewport_height;
self.dirty = true;