Commit 99771a87 authored by Chad Versace's avatar Chad Versace

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/23Reviewed-by: Jose Fonseca's avatarJosé Fonseca <jfonseca@vmware.com>
Signed-off-by: default avatarChad Versace <chad.versace@linux.intel.com>
parent b32f4875
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment