Fix a bug where changing resolution wouldn't make a difference on a fly