[host] dxgi: damage all textures when skipping frame

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2022-01-09 16:36:26 +11:00
1 parent 24193aaaa6
commit a391e271c3
1 file changed
+7
@@ -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);