Skip to content
Snippets Groups Projects
Commit 14e502fd authored by James R.'s avatar James R.
Browse files

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.
parent 5565ed28
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment