From: Chia-I Wu Date: Thu, 7 Oct 2010 04:14:38 +0000 (+0800) Subject: st/vega: Fix version check in context creation. X-Git-Tag: 062012170305~9444^2~308 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2c0ef8b51ce86388335e83f2390940cb8fbc12f;p=profile%2Fivi%2Fmesa.git st/vega: Fix version check in context creation. This fixes a regression since 4531356817ec8383ac35932903773de67af92e37. --- diff --git a/src/gallium/state_trackers/vega/vg_manager.c b/src/gallium/state_trackers/vega/vg_manager.c index e799674..232deef 100644 --- a/src/gallium/state_trackers/vega/vg_manager.c +++ b/src/gallium/state_trackers/vega/vg_manager.c @@ -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);