SDL: Temporarily ignore gl_config.driver_loaded check in Cocoa_GLES_SetupWindow.

From 66fbf00e7d7858d62dec0140bbe98f1cd2ec384a Mon Sep 17 00:00:00 2001
From: Hanseul Jun <[EMAIL REDACTED]>
Date: Thu, 9 Dec 2021 10:40:18 -0800
Subject: [PATCH] Temporarily ignore gl_config.driver_loaded check in
 Cocoa_GLES_SetupWindow.

---
 src/video/cocoa/SDL_cocoaopengles.m | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/video/cocoa/SDL_cocoaopengles.m b/src/video/cocoa/SDL_cocoaopengles.m
index bbe0ed337a3..903b75b79a4 100644
--- a/src/video/cocoa/SDL_cocoaopengles.m
+++ b/src/video/cocoa/SDL_cocoaopengles.m
@@ -109,7 +109,10 @@
 
 
     if (_this->egl_data == NULL) {
+        /* !!! FIXME: commenting out this assertion is (I think) incorrect; figure out why driver_loaded is wrong for ANGLE instead. --ryan. */
+        #if 0  /* When hint SDL_HINT_OPENGL_ES_DRIVER is set to "1" (e.g. for ANGLE support), _this->gl_config.driver_loaded can be 1, while the below lines function. */
         SDL_assert(!_this->gl_config.driver_loaded);
+        #endif
         if (SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY, 0) < 0) {
             SDL_EGL_UnloadLibrary(_this);
             return -1;