Merge pull request #373 from MichonGoddijn231849/fix/replaced-device-shadows

fix(agc): a replaced device's unit shadows leave the registry
This commit is contained in:
Dean 2026-10-04 18:49:42 +13:00 committed by GitHub
commit 870bdd814f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1031,6 +1031,7 @@ void VulkanDevice::PrepareForReplacement() {
Graphics::FlushCachedTextures(state->device);
Graphics::PublishAllShadows(state->context, Graphics::PublishReason::Teardown);
WaitIdle();
Graphics::DestroyShadows(state->device);
}
void VulkanDevice::WaitIdle() {