mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[host] d12: fix incorrect format presented to extra clients
This commit is contained in:
parent
60b01566e1
commit
b0b851dd4b
@ -372,13 +372,15 @@ static CaptureResult d12_waitFrame(unsigned frameBufferIndex,
|
|||||||
|
|
||||||
|
|
||||||
D3D12_RESOURCE_DESC srcFormat = ID3D12Resource_GetDesc(*src);
|
D3D12_RESOURCE_DESC srcFormat = ID3D12Resource_GetDesc(*src);
|
||||||
D3D12_RESOURCE_DESC dstFormat = srcFormat;
|
D3D12_RESOURCE_DESC dstFormat = this->dstFormat;
|
||||||
|
|
||||||
// if the input format changed, reconfigure the effects
|
// if the input format changed, reconfigure the effects
|
||||||
if (dstFormat.Width != this->captureFormat.Width ||
|
if (dstFormat.Width == 0 ||
|
||||||
|
dstFormat.Width != this->captureFormat.Width ||
|
||||||
dstFormat.Height != this->captureFormat.Height ||
|
dstFormat.Height != this->captureFormat.Height ||
|
||||||
dstFormat.Format != this->captureFormat.Format)
|
dstFormat.Format != this->captureFormat.Format)
|
||||||
{
|
{
|
||||||
|
dstFormat = srcFormat;
|
||||||
this->captureFormat = dstFormat;
|
this->captureFormat = dstFormat;
|
||||||
|
|
||||||
//TODO: loop through an effect array
|
//TODO: loop through an effect array
|
||||||
|
Loading…
Reference in New Issue
Block a user