st/vega: Fix version check in context creation.

This fixes a regression since 4531356817.
(cherry picked from commit b2c0ef8b51)
This commit is contained in:
Chia-I Wu 2010-10-07 12:14:38 +08:00
parent bce3917192
commit db7de707a3

View 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);