mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
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:
parent
c70f5a5309
commit
4f9be3f457
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user