From 671cd3feca6bacc75b9e05ce2e31f7f90c6dda55 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 8 Sep 2022 11:20:27 -0400
Subject: [PATCH] hints: Don't double-set SDL_VIDEODRIVER.
sdl12-compat hints are always environment variables now, so no need to
force the environment variable now; it's already there.
---
src/SDL12_compat.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 3265965c..5fc0bf20 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -2309,12 +2309,6 @@ SDL_InitSubSystem(Uint32 sdl12flags)
sdl12_compat_macos_init();
#endif
- /* Some applications need to force a specific videodriver. */
- forcevideodrv = SDL12Compat_GetHint("SDL_VIDEODRIVER");
- if (forcevideodrv) {
- SDL20_setenv("SDL_VIDEODRIVER", forcevideodrv, 1);
- }
-
/* note that currently we ignore SDL12_INIT_NOPARACHUTE, since
there _isn't_ a parachute in SDL2, and mostly it was meant to deal
with X11's XVidMode leaving the display resolution busted if the app