mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +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. # Conflicts: # src/sdl/i_video.c
This commit is contained in:
parent
fd3b045f80
commit
48cc0158c2
1 changed files with 7 additions and 0 deletions
|
|
@ -1593,6 +1593,13 @@ static SDL_bool Impl_CreateContext(void)
|
||||||
flags |= SDL_RENDERER_PRESENTVSYNC;
|
flags |= SDL_RENDERER_PRESENTVSYNC;
|
||||||
#endif
|
#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)
|
if (!renderer)
|
||||||
renderer = SDL_CreateRenderer(window, -1, flags);
|
renderer = SDL_CreateRenderer(window, -1, flags);
|
||||||
if (renderer == NULL)
|
if (renderer == NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue