mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 04:11:18 +00:00
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:
parent
5565ed28ec
commit
14e502fd3f
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue