mesa/glformats: make _mesa_gles_error_check_format_and_type() more consistent