Fix GLES2 format mismatch

Many of the glTexSubImage tests have a mismatch between the format
specified at glTexImage time and the format specified at glTexSubImage
time. This can cause a GL error which is different from the error
these tests expect. Fix the tests to use one consistent format.

Also fix texsubimage2d_level_max_cube which was using the wrong
texture target for the first face.

Bug: 27730221
Change-Id: Ic658bd1e2a0ad2ca46bfc885fae8026d612a22a2
1 file changed