[host] dxgi: damage all textures when skipping frame

This commit is contained in:
Quantum 2022-01-08 23:57:20 -05:00 committed by Geoffrey McRae
parent 24193aaaa6
commit a391e271c3

View file

@ -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);