Add const markers to some texture mapping code
Remove some const modifiers that broke SDL-only build