From 3dc96fbe432cfc136524d0e25753cebc3a4f3359 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 7 Oct 2017 03:02:14 -0700 Subject: [PATCH] UI: Add ini option to use different graphics adapters Allows setting a specific graphics adapter index to use for Direct3D 11. This is currently meant to be sort of "undocumented" in implementing it this way due to the fact that users will be guaranteed to break their configurations if this is implemented in the UI (even if in advanced settings). --- UI/window-basic-main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index eade3813f..a5cfe28b2 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -2921,7 +2921,8 @@ int OBSBasic::ResetVideo() VIDEO_CS_601 : VIDEO_CS_709; ovi.range = astrcmpi(colorRange, "Full") == 0 ? VIDEO_RANGE_FULL : VIDEO_RANGE_PARTIAL; - ovi.adapter = 0; + ovi.adapter = config_get_uint(App()->GlobalConfig(), + "Video", "AdapterIdx"); ovi.gpu_conversion = true; ovi.scale_type = GetScaleType(basicConfig);