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:
parent
aa35cdbb18
commit
8d8f4b9200
@ -454,6 +454,9 @@ namespace dxvk {
|
||||
if (m_desc.BufferUsage & DXGI_USAGE_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->AddRefPrivate();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user