glformats: add _mesa_es3_error_check_format_and_type