summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2014-12-05 16:48:53 -0800
committerChad Versace <chad.versace@linux.intel.com>2014-12-31 13:01:05 -0800
commit99771a872f0426a89681c2e37e617438167157ff (patch)
tree430ce57c4da5ef08a5c1a2a8cffe12f135b9974b
parentb32f48752e8464c59f2627d98d8b99ae7577bfc4 (diff)
wgl: Fix requirements for creation of ES2 context
To create an ES2 context, Waffle required WGL_EXT_create_context_es2_profile. Fix Waffle to require either WGL_EXT_create_context_es_profile *or* WGL_EXT_create_context_es2_profile, because WGL_EXT_create_context_es_profile is an updated variant of WGL_EXT_create_context_es2_profile that supercedes it. Fixes #23: https://github.com/waffle-gl/waffle/issues/23 Reviewed-by: José Fonseca <jfonseca@vmware.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r--src/waffle/wgl/wgl_config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/waffle/wgl/wgl_config.c b/src/waffle/wgl/wgl_config.c
index 9dea991..59a70a6 100644
--- a/src/waffle/wgl/wgl_config.c
+++ b/src/waffle/wgl/wgl_config.c
@@ -118,8 +118,10 @@ wgl_config_check_context_attrs(struct wgl_display *dpy,
assert(attrs->context_major_version == 2);
assert(!attrs->context_forward_compatible);
- if (!dpy->EXT_create_context_es2_profile) {
+ if (!dpy->EXT_create_context_es2_profile
+ && !dpy->EXT_create_context_es_profile) {
wcore_errorf(WAFFLE_ERROR_UNSUPPORTED_ON_PLATFORM,
+ "WGL_EXT_create_context_es_profile or "
"WGL_EXT_create_context_es2_profile is required "
"to create an OpenGL ES2 context");
return false;