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