mirror of
https://github.com/A-Archives-and-Forks/Akebi-GC.git
synced 2026-10-11 01:58:05 +08:00
fix dx11 hardware bug (old fix by @WitchGod)
This commit is contained in:
1 parent
8f48ff5c19
commit
6fd7a2e2ef
1 file changed
+3
-3
@@ -82,10 +82,10 @@ static IDXGISwapChainPresent findDirect11Present()
|
||||
ID3D11DeviceContext* pContext = nullptr;
|
||||
ID3D11Device* pDevice = nullptr;
|
||||
|
||||
if (/*FAILED(D3D11CreateDeviceAndSwapChain(NULL, D3D_DRIVER_TYPE_WARP, NULL, NULL, &featureLevel, 1,
|
||||
D3D11_SDK_VERSION, &swapChainDesc, &pSwapChain, &pDevice, NULL, &pContext)) &&*/
|
||||
if (FAILED(D3D11CreateDeviceAndSwapChain(nullptr, D3D_DRIVER_TYPE_WARP, nullptr, 0, nullptr, 1, D3D11_SDK_VERSION,
|
||||
&swapChainDesc, &pSwapChain, &pDevice, &featureLevel, &pContext)) &&
|
||||
FAILED(D3D11CreateDeviceAndSwapChain(nullptr, D3D_DRIVER_TYPE_HARDWARE, nullptr, 0, nullptr, 0, D3D11_SDK_VERSION,
|
||||
&swapChainDesc, &pSwapChain, &pDevice, &featureLevel, nullptr)))
|
||||
&swapChainDesc, &pSwapChain, &pDevice, &featureLevel, &pContext)))
|
||||
{
|
||||
DestroyWindow(swapChainDesc.OutputWindow);
|
||||
UnregisterClass(wc.lpszClassName, GetModuleHandle(nullptr));
|
||||
|
||||
Reference in new issue
Block a user