Add missing IDXGIFactory4.AddRef() to IDXGIFactory6 fallback

This fixes an AccessViolationException when IDXGIFactory6 is not available
このコミットが含まれているのは:
Sergio Pedri committed 2021-12-21 14:06:10 +01:00
1 親 8b89c5b694
コミット dc0c1204d7
1ファイル変更
+2
+2
ファイルの表示
@@ -162,6 +162,8 @@ internal static partial class DeviceHelper
@this->lpVtbl = Vtbl;
@this->dxgiFactory4 = dxgiFactory4;
_ = dxgiFactory4->AddRef();
*dxgiFactory6 = (IDXGIFactory6*)@this;
}