work-around a bug in Windows 11's Direct3D9 VSync timer (#501)

* work-around a bug in Windows 11's Direct3D9 VSync timer

* set direct3d11 on all versions of Windows
This commit is contained in:
Fabian Greffrath 2022-04-08 10:04:09 +02:00 committed by GitHub
parent c70f5a5309
commit 4f9be3f457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1499,6 +1499,11 @@ static void I_InitGraphicsMode(void)
texture = NULL;
}
#ifdef _WIN32
// [FG] work-around a bug in Windows 11's Direct3D9 VSync timer
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "direct3d11");
#endif
renderer = SDL_CreateRenderer(screen, -1, flags);
// [FG] try again without hardware acceleration