mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:52:57 +00:00
[host] dxgi: damage all textures when skipping frame
This commit is contained in:
parent
24193aaaa6
commit
a391e271c3
1 changed files with 7 additions and 0 deletions
|
@ -858,6 +858,13 @@ static CaptureResult dxgi_capture(void)
|
|||
return CAPTURE_RESULT_ERROR;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// If we are skipping the frame, then we lose track of the damage,
|
||||
// and must invalidate all the textures.
|
||||
for (int i = 0; i < this->maxTextures; ++i)
|
||||
this->texture[i].texDamageCount = -1;
|
||||
}
|
||||
}
|
||||
|
||||
IDXGIResource_Release(res);
|
||||
|
|
Loading…
Reference in a new issue