SDL hint render driver to direct3d11

Windows bug; RPT files were not being generated for
toaster on Windows 11. Eventually it was narrowed to down
to direct3d driver specifically.

# Conflicts:
#	src/sdl/i_video.c
This commit is contained in:
James R 2022-08-03 11:10:12 -07:00 committed by toaster
parent fd3b045f80
commit 48cc0158c2

View file

@ -1593,6 +1593,13 @@ static SDL_bool Impl_CreateContext(void)
flags |= SDL_RENDERER_PRESENTVSYNC;
#endif
// 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.
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "direct3d11");
if (!renderer)
renderer = SDL_CreateRenderer(window, -1, flags);
if (renderer == NULL)