Gles2 shader texture fixes

These fixes only touch the OpenGL ES2 codepath.