Commit d0dd73ab authored by Roman Sedaikin's avatar Roman Sedaikin

Added NVIDIA GeForce GTX 960M to blacklist for DirectX skia context.

parent e35307f8
...@@ -31,6 +31,7 @@ const std::vector<std::wstring> adapterBlacklist { ...@@ -31,6 +31,7 @@ const std::vector<std::wstring> adapterBlacklist {
L"Intel(R) HD Graphics 520", L"Intel(R) HD Graphics 520",
L"Intel(R) HD Graphics 530", L"Intel(R) HD Graphics 530",
L"NVIDIA GeForce GTX 750 Ti", L"NVIDIA GeForce GTX 750 Ti",
L"NVIDIA GeForce GTX 960M",
L"NVIDIA Quadro M2000M" }; L"NVIDIA Quadro M2000M" };
class DirectXDevice class DirectXDevice
...@@ -323,9 +324,6 @@ HRESULT D3DCompile( ...@@ -323,9 +324,6 @@ HRESULT D3DCompile(
gr_cp<IDXGISwapChain1> swapChain; gr_cp<IDXGISwapChain1> swapChain;
GR_D3D_CALL_ERRCHECK(swapChainFactory->CreateSwapChainForHwnd(d3dDevice->queue.get(), fWindow, &swapChainDesc, &swapChainFSDesc, nullptr, &swapChain)); GR_D3D_CALL_ERRCHECK(swapChainFactory->CreateSwapChainForHwnd(d3dDevice->queue.get(), fWindow, &swapChainDesc, &swapChainFSDesc, nullptr, &swapChain));
DXGI_RGBA background = {1.0f, 1.0f, 1.0f, 1.0f};
swapChain->SetBackgroundColor(&background);
GR_D3D_CALL_ERRCHECK(swapChain->QueryInterface(IID_PPV_ARGS(&d3dDevice->swapChain))); GR_D3D_CALL_ERRCHECK(swapChain->QueryInterface(IID_PPV_ARGS(&d3dDevice->swapChain)));
GR_D3D_CALL_ERRCHECK(d3dDevice->device->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&d3dDevice->fence))); GR_D3D_CALL_ERRCHECK(d3dDevice->device->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&d3dDevice->fence)));
d3dDevice->fenceEvent = CreateEvent(nullptr, FALSE, FALSE, nullptr); d3dDevice->fenceEvent = CreateEvent(nullptr, FALSE, FALSE, nullptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment