Merge branch 'llvm-cliptest-viewport'
[mesa.git] / src / gallium / state_trackers / vega / vg_manager.c
index e7996741d147d395aae0b652959dd9dba36b8f9e..232deefa166472d1dab244c2e362d41ca5f0bfd4 100644 (file)
@@ -352,7 +352,7 @@ vg_api_create_context(struct st_api *stapi, struct st_manager *smapi,
       return NULL;
 
    /* only 1.0 is supported */
-   if (attribs->major != 1 || attribs->minor > 0)
+   if (attribs->major > 1 || (attribs->major == 1 && attribs->minor > 0))
       return NULL;
 
    pipe = smapi->screen->context_create(smapi->screen, NULL);