Minor gles renderer cleanup and fixes

This attempt to bring GLES renderer somewhat closer in line with GL renderer. There is much much more work to do here thou.

It may also fix 3d rendering on ATV and Android.