From 8604ba2d7ef4db6c5dc02f18b89b12f364dad6f3 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 15 Sep 2024 12:14:52 +0200 Subject: [PATCH] Revert "use d3d11 for windoze and opengles2 for nix sdl render driver" This reverts commit 15f44c333c9e6bdd4a4d1165b5dc74a39e40619a. --- src/sdl/i_video.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index f231091fa..2eb773ada 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1640,17 +1640,7 @@ static SDL_bool Impl_CreateContext(void) // "direct3d" driver (D3D9) causes Drmingw exchndl // to not write RPT files. Every other driver // seems fine. - - // well then why use the super slow opengl driver? - // d3d11 is the fastest out of all of em and works fine with drmingw - // for nix opengles2 also does a rather well job -#ifdef _WIN32 - if (SDL_SetHint(SDL_HINT_RENDER_DRIVER, "direct3d11") == SDL_FALSE) - SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl"); -#else - if (SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengles2") == SDL_FALSE) - SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl"); -#endif + SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl"); if (!renderer) renderer = SDL_CreateRenderer(window, -1, flags);