Thanks @samo79.
Well, the version I sent you was a different build to my original.
The one that other people have been testing with was built with:
-lSDL2_gl4es
And, with a symlink of
include/GL
pointing to the GL4ES headers.
The one that I sent you was built with:
-lSDL2
And, with a symlink of
include/GL
pointing to the MiniGL headers.
===
As for mednafen. I always built it with full SDL2/GL4ES and yet it works for you. So, perhaps it is some function call in particular in SM64 that is causing an issue and which is not used in Mednafen.