sdl2-compat: Revert "Preserve behavior of https://github.com/libsdl-org/SDL/commit/120b8d4189d0979e4838daeb25d5a69e6260f5e0"

https://github.com/libsdl-org/sdl2-compat/commit/0933cfd92f0187bb2af514fb673fca0b63443a94

From 0933cfd92f0187bb2af514fb673fca0b63443a94 Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Fri, 10 Jan 2025 20:43:05 -0500
Subject: [PATCH] Revert "Preserve behavior of
 https://github.com/libsdl-org/SDL/commit/120b8d4189d0979e4838daeb25d5a69e6260f5e0"

The root issue necessitating this workaround was identified and fixed, and creating an EGL window when not needed can now cause protocol errors, as the EGL window object attaches a sync object to the surface, of which only one is allowed, so if some other part of the graphics stack then tries to attach another sync object, the program will be halted.
---
 src/sdl2_compat.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index bae27f4..219e5b4 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -6944,7 +6944,6 @@ WindowPos2To3(int *x, int *y)
 SDL_DECLSPEC SDL_Window * SDLCALL
 SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
 {
-    const char *driver;
     SDL_Window *window = NULL;
     const Uint32 is_popup = flags & (SDL_WINDOW_POPUP_MENU | SDL_WINDOW_TOOLTIP);
 
@@ -6959,14 +6958,6 @@ SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
         flags |= SDL_WINDOW_UTILITY;
     }
 
-    /* Preserve behavior in https://github.com/libsdl-org/SDL/commit/120b8d4189d0979e4838daeb25d5a69e6260f5e0 */
-    driver = SDL3_GetCurrentVideoDriver();
-    if (driver && SDL3_strcmp(driver, "wayland") == 0) {
-        if (!(flags & SDL_WINDOW_VULKAN)) {
-            flags |= SDL_WINDOW_OPENGL;
-        }
-    }
-
     if (!is_popup) {
         SDL_PropertiesID props = SDL3_CreateProperties();