GLES3: Try to re-enable PSP-based mipmapping generation
Set amask based on ReplaceAlphaWithStencil()
Regroup Stencil Testing
ReplaceAlphaWithStencil() has been checked for gstate.isStencilTestEnabled()
Save/restore local file handles and seek positions
Merge pull request #4933 from KentuckyCompass/savestate_openfiles

Save/restore local file handles and seek positions
Merge pull request #4898 from raven02/patch-21

GLES3: enable PSP-based mipmapping generation
Merge pull request #4913 from raven02/patch-25

Set alpha mask based on ReplaceAlphaWithStencil()
Don't declare fragColor0 unless we will use it. See #4877
Shaders: Make sure to always use matching versions.

Really should unify this somehow.