(Nebuleon/gln64) Backport https://github.com/Nebuleon/mupen64plus-video-gles2n64/commit/8df3d9987c438aaa9d64d8545647a3baf11c2f24