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.
This commit is contained in:
James R 2022-08-03 11:10:12 -07:00
parent 5565ed28ec
commit 14e502fd3f
1 changed files with 7 additions and 0 deletions

View File

@ -1749,6 +1749,13 @@ 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.
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "direct3d11");
renderer = SDL_CreateRenderer(window, -1, flags);
if (renderer == NULL)
{