mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 21:43:40 +00:00
[host] dxgi: damage all textures when skipping frame
This commit is contained in:
parent
24193aaaa6
commit
a391e271c3
@ -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 New Issue
Block a user