GL/GLES: split off GLES from GLTexture (#25207)