mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
st/vega: Fix version check in context creation.
This fixes a regression since4531356817. (cherry picked from commitb2c0ef8b51)
This commit is contained in:
parent
bce3917192
commit
db7de707a3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue