[waffle] [PATCH 4/4] waffle internals: Remove attrs->context_full_version
Jordan Justen
jordan.l.justen at intel.com
Sun May 4 10:14:21 PDT 2014
If the user makes a request to waffle for a minor version > 9, then
this field will not properly represent the requested version.
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/waffle/core/wcore_config_attrs.c | 4 ----
src/waffle/core/wcore_config_attrs.h | 1 -
2 files changed, 5 deletions(-)
diff --git a/src/waffle/core/wcore_config_attrs.c b/src/waffle/core/wcore_config_attrs.c
index 415ce28..f2d3e70 100644
--- a/src/waffle/core/wcore_config_attrs.c
+++ b/src/waffle/core/wcore_config_attrs.c
@@ -184,10 +184,6 @@ parse_context_version(struct wcore_config_attrs *attrs,
return false;
}
- attrs->context_full_version =
- 10 * attrs->context_major_version
- + attrs->context_minor_version;
-
switch (attrs->context_api) {
case WAFFLE_CONTEXT_OPENGL:
if (wcore_config_attrs_version_below(attrs, 10)) {
diff --git a/src/waffle/core/wcore_config_attrs.h b/src/waffle/core/wcore_config_attrs.h
index b7ff1f6..378a548 100644
--- a/src/waffle/core/wcore_config_attrs.h
+++ b/src/waffle/core/wcore_config_attrs.h
@@ -33,7 +33,6 @@ struct wcore_config_attrs {
int32_t context_api;
int32_t context_major_version;
int32_t context_minor_version;
- int32_t context_full_version;
int32_t context_profile;
int32_t rgb_size;
--
1.9.2
More information about the waffle
mailing list