mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-09 06:17:03 +00:00
[host] dxgi: fix d3d12 texture sharing when in HDR
This commit is contained in:
parent
699d95818d
commit
0510d06c4b
@ -769,15 +769,14 @@ static bool dxgi_init(void)
|
|||||||
.BindFlags = D3D11_BIND_RENDER_TARGET |
|
.BindFlags = D3D11_BIND_RENDER_TARGET |
|
||||||
D3D11_BIND_SHADER_RESOURCE,
|
D3D11_BIND_SHADER_RESOURCE,
|
||||||
.CPUAccessFlags = 0,
|
.CPUAccessFlags = 0,
|
||||||
.MiscFlags = D3D11_RESOURCE_MISC_SHARED_NTHANDLE |
|
.MiscFlags = 0
|
||||||
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// allow texture sharing with other backends
|
// allow texture sharing with other backends
|
||||||
if (this->backend != ©BackendD3D11)
|
if (this->backend != ©BackendD3D11)
|
||||||
hdrTexDesc.MiscFlags |=
|
hdrTexDesc.MiscFlags |=
|
||||||
D3D11_RESOURCE_MISC_SHARED_NTHANDLE |
|
D3D11_RESOURCE_MISC_SHARED |
|
||||||
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX;
|
D3D11_RESOURCE_MISC_SHARED_NTHANDLE;
|
||||||
|
|
||||||
status = ID3D11Device_CreateTexture2D(*this->device, &hdrTexDesc, NULL,
|
status = ID3D11Device_CreateTexture2D(*this->device, &hdrTexDesc, NULL,
|
||||||
(ID3D11Texture2D **)comRef_newGlobal(&this->texture[i].hdrTex));
|
(ID3D11Texture2D **)comRef_newGlobal(&this->texture[i].hdrTex));
|
||||||
|
Loading…
Reference in New Issue
Block a user