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.
Cc: José Fonseca <[email protected]> Cc: Emil Velikov <[email protected]> Fixes #23: https://github.com/waffle-gl/waffle/issues/23 Signed-off-by: Chad Versace <[email protected]> --- Totally untested. I don't have MinGW setup right now. Windows people, please let know if this patch compiles. src/waffle/wgl/wgl_config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.1.2.1.g5433a3e _______________________________________________ waffle mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/waffle

