From 359e30dba6b5bb89e7d676c3cf0f6863268f7f2e Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sat, 14 Feb 2026 15:18:16 -0500 Subject: [PATCH] Use direct3d11 on windows for software --- src/sdl/i_video.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sdl/i_video.cpp b/src/sdl/i_video.cpp index 2c0530df1..8608f5ed7 100644 --- a/src/sdl/i_video.cpp +++ b/src/sdl/i_video.cpp @@ -208,6 +208,10 @@ static bool Impl_RenderContextCreate(void) } if (usesdlsoft) SDL_SetStringProperty(props, SDL_PROP_RENDERER_CREATE_NAME_STRING, "SDL_SOFTWARE_RENDERER"); +#ifdef _WIN32 + else + SDL_SetStringProperty(props, SDL_PROP_RENDERER_CREATE_NAME_STRING, "direct3d11"); +#endif SDL_SetNumberProperty(props, SDL_PROP_RENDERER_CREATE_PRESENT_VSYNC_NUMBER, cv_vidwait.value); SDL_SetPointerProperty(props, SDL_PROP_RENDERER_CREATE_WINDOW_POINTER, window); renderer = SDL_CreateRendererWithProperties(props);