mesa: Add missing check of format and type in glTexSubImageXD on GLES 3.0