Merge pull request #4285 from RisingFog/its_a_curse_to_recurse Fix frame dump crash when resolution changes