fwd_compat is already handled at the top of the function, while
version checks will become invalid with a later patch.

Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com>
---
 src/waffle/wgl/wgl_config.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/waffle/wgl/wgl_config.c b/src/waffle/wgl/wgl_config.c
index 59a70a6..a21ba71 100644
--- a/src/waffle/wgl/wgl_config.c
+++ b/src/waffle/wgl/wgl_config.c
@@ -101,10 +101,6 @@ wgl_config_check_context_attrs(struct wgl_display *dpy,
             return true;
 
         case WAFFLE_CONTEXT_OPENGL_ES1:
-            assert(wcore_config_attrs_version_eq(attrs, 10) ||
-                   wcore_config_attrs_version_eq(attrs, 11));
-            assert(!attrs->context_forward_compatible);
-
             if (!dpy->EXT_create_context_es_profile) {
                 wcore_errorf(WAFFLE_ERROR_UNSUPPORTED_ON_PLATFORM,
                              "WGL_EXT_create_context_es_profile is required "
@@ -115,9 +111,6 @@ wgl_config_check_context_attrs(struct wgl_display *dpy,
             return true;
 
         case WAFFLE_CONTEXT_OPENGL_ES2:
-            assert(attrs->context_major_version == 2);
-            assert(!attrs->context_forward_compatible);
-
             if (!dpy->EXT_create_context_es2_profile
                 && !dpy->EXT_create_context_es_profile) {
                 wcore_errorf(WAFFLE_ERROR_UNSUPPORTED_ON_PLATFORM,
@@ -130,8 +123,6 @@ wgl_config_check_context_attrs(struct wgl_display *dpy,
             return true;
 
         case WAFFLE_CONTEXT_OPENGL_ES3:
-            assert(attrs->context_major_version == 3);
-
             if (!dpy->EXT_create_context_es_profile) {
                 wcore_errorf(WAFFLE_ERROR_UNSUPPORTED_ON_PLATFORM,
                              "WGL_EXT_create_context_es_profile is required "
-- 
2.8.0

_______________________________________________
waffle mailing list
waffle@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/waffle

Reply via email to