Set new hints present in SDL 2.0.15 development builds

This commit is contained in:
Cameron Gutman
2021-01-08 18:14:49 -06:00
parent 137454beff
commit af0921c5b2
2 changed files with 8 additions and 13 deletions

View File

@@ -394,6 +394,11 @@ int main(int argc, char *argv[])
// future KMSDRM platforms that use SDL for rendering.
SDL_SetHint(SDL_HINT_VIDEO_DOUBLE_BUFFER, "1");
// Use Direct3D 9Ex to avoid a deadlock caused by the D3D device being reset when
// the user triggers a UAC prompt. This option controls the software/SDL renderer.
// The DXVA2 renderer uses Direct3D 9Ex itself directly.
SDL_SetHint("SDL_WINDOWS_USE_D3D9EX", "1");
if (SDL_InitSubSystem(SDL_INIT_TIMER) != 0) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
"SDL_InitSubSystem(SDL_INIT_TIMER) failed: %s",