mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[host] dxgi: explicitly flush the pipeline to reduce latency
This commit is contained in:
parent
2206752b66
commit
e225f66cee
@ -1278,6 +1278,7 @@ static CaptureResult dxgi_capture(void)
|
|||||||
*this->deviceContext, D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP);
|
*this->deviceContext, D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP);
|
||||||
|
|
||||||
ID3D11DeviceContext_Draw(*this->deviceContext, 4, 0);
|
ID3D11DeviceContext_Draw(*this->deviceContext, 4, 0);
|
||||||
|
ID3D11DeviceContext_Flush(*this->deviceContext);
|
||||||
|
|
||||||
if (!this->backend->copyFrame(tex, *tex->hdrTex))
|
if (!this->backend->copyFrame(tex, *tex->hdrTex))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user