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:
commit
870bdd814f
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue