Scrambled screen when changing resolution

Hello, when using new retroarch 1.7.7 the whole screen scrambles when you change the resolution to almost anything other than the default one. This wasnt happening on the version I’ve been using from may 2018 (sorry not sure which version number) this shows the problem:

Thanks