1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 19:24:10 +01:00

[d3d11] Add support for DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE

Trivial since we treat back buffers as regular D3D textures.
Fixes a wine test failure.
This commit is contained in:
Philip Rebohle 2019-10-01 22:30:05 +02:00
parent aa35cdbb18
commit 8d8f4b9200
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -454,6 +454,9 @@ namespace dxvk {
if (m_desc.BufferUsage & DXGI_USAGE_UNORDERED_ACCESS) if (m_desc.BufferUsage & DXGI_USAGE_UNORDERED_ACCESS)
desc.BindFlags |= D3D11_BIND_UNORDERED_ACCESS; desc.BindFlags |= D3D11_BIND_UNORDERED_ACCESS;
if (m_desc.Flags & DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE)
desc.MiscFlags |= D3D11_RESOURCE_MISC_GDI_COMPATIBLE;
m_backBuffer = new D3D11Texture2D(m_parent, &desc); m_backBuffer = new D3D11Texture2D(m_parent, &desc);
m_backBuffer->AddRefPrivate(); m_backBuffer->AddRefPrivate();