projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da495ee
)
st/vega: Fix version check in context creation.
author
Chia-I Wu
<olv@lunarg.com>
Thu, 7 Oct 2010 04:14:38 +0000
(12:14 +0800)
committer
Chia-I Wu
<olv@lunarg.com>
Thu, 7 Oct 2010 04:15:31 +0000
(12:15 +0800)
This fixes a regression since
4531356817ec8383ac35932903773de67af92e37
.
src/gallium/state_trackers/vega/vg_manager.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/vega/vg_manager.c
b/src/gallium/state_trackers/vega/vg_manager.c
index e7996741d147d395aae0b652959dd9dba36b8f9e..232deefa166472d1dab244c2e362d41ca5f0bfd4 100644
(file)
--- 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);