Merge pull request #4010 from Bigpet/master

"Dump..." in memoryview crashes the emulator if Ram.dump unwritable
update native
Save a few GL calls per frame on Tegra using NV_draw_texture
Bump native (buildfix.)
included <algorithm> to make sure all compilers find std::max with no errors