SDL: egl: Don't fail to create a context if KHR_create_context_no_error is unsupported

From 7c050aa60a14a4cc5f3520f6efc1156fcb4f7643 Mon Sep 17 00:00:00 2001
From: Martin Mauersics <[EMAIL REDACTED]>
Date: Mon, 27 Sep 2021 13:53:16 -0400
Subject: [PATCH] egl: Don't fail to create a context if
 KHR_create_context_no_error is unsupported

---
 src/video/SDL_egl.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c
index 0b8635db29..928a1df2fe 100644
--- a/src/video/SDL_egl.c
+++ b/src/video/SDL_egl.c
@@ -1010,18 +1010,14 @@ SDL_EGL_CreateContext(_THIS, EGLSurface egl_surface)
         }
     }
 
-    if (_this->gl_config.no_error) {
 #ifdef EGL_KHR_create_context_no_error
+    if (_this->gl_config.no_error) {
         if (SDL_EGL_HasExtension(_this, SDL_EGL_DISPLAY_EXTENSION, "EGL_KHR_create_context_no_error")) {
             attribs[attr++] = EGL_CONTEXT_OPENGL_NO_ERROR_KHR;
             attribs[attr++] = _this->gl_config.no_error;
-        } else
-#endif
-        {
-            SDL_SetError("EGL implementation does not support no_error contexts");
-            return NULL;
         }
     }
+#endif
 
     attribs[attr++] = EGL_NONE;