SDL: Fixed uikit crash when GLES is disabled

From f9d490045b91e500cff30004d4b279a6ee1433f3 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 14 Oct 2024 08:58:02 -0700
Subject: [PATCH] Fixed uikit crash when GLES is disabled

Fixes https://github.com/libsdl-org/SDL/issues/11208
---
 src/video/uikit/SDL_uikitwindow.m | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video/uikit/SDL_uikitwindow.m b/src/video/uikit/SDL_uikitwindow.m
index 1d6e7f884d3dc..85e0b920bfabf 100644
--- a/src/video/uikit/SDL_uikitwindow.m
+++ b/src/video/uikit/SDL_uikitwindow.m
@@ -257,11 +257,13 @@ void UIKit_HideWindow(SDL_VideoDevice *_this, SDL_Window *window)
 
 void UIKit_RaiseWindow(SDL_VideoDevice *_this, SDL_Window *window)
 {
+#if defined(SDL_VIDEO_OPENGL_ES) || defined(SDL_VIDEO_OPENGL_ES2)
     /* We don't currently offer a concept of "raising" the SDL window, since
      * we only allow one per display, in the iOS fashion.
      * However, we use this entry point to rebind the context to the view
      * during OnWindowRestored processing. */
     _this->GL_MakeCurrent(_this, _this->current_glwin, _this->current_glctx);
+#endif
 }
 
 static void UIKit_UpdateWindowBorder(SDL_VideoDevice *_this, SDL_Window *window)