use sdl ogl render instead of software for software mode on nix

oops
This commit is contained in:
Alug committed 2024-06-12 22:31:29 +02:00
1 parent 1b0496b1e7
commit e3c91629db
1 file changed
+4 -5
+4 -5
View File
@@ -2023,12 +2023,11 @@ static SDL_bool Impl_CreateWindow(SDL_bool fullscreen)
else if (cv_vidwait.value)
flags |= SDL_RENDERER_PRESENTVSYNC;
// 3 August 2022
// Possibly a Windows 11 issue; the default
// "direct3d" driver (D3D9) causes Drmingw exchndl
// to not write RPT files. Every other driver
// seems fine.
#ifdef _WIN32
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "direct3d11");
#else
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl");
#endif
renderer = SDL_CreateRenderer(window, -1, flags);
if (renderer == NULL)