(Glide64mk2) Backport https://github.com/libretro/mupen64plus-libretro/commit/0769f3c1dfe62ecac8571d5208e121470824ba89