GPU: Centralize DestroyAllFBOs().

This cleans up the postshader update code.
This commit is contained in:
Unknown W. Brackets 2020-05-13 00:06:13 -07:00
parent 03e3a935da
commit 22e46b51c2
16 changed files with 52 additions and 157 deletions

View file

@ -359,11 +359,12 @@ void GPU_D3D11::DoState(PointerWrap &p) {
// TODO: Some of these things may not be necessary.
// None of these are necessary when saving.
if (p.mode == p.MODE_READ && !PSP_CoreParameter().frozen) {
textureCacheD3D11_->Clear(true);
textureCache_->Clear(true);
depalShaderCache_->Clear();
drawEngine_.ClearTrackedVertexArrays();
gstate_c.Dirty(DIRTY_TEXTURE_IMAGE);
framebufferManagerD3D11_->DestroyAllFBOs();
framebufferManager_->DestroyAllFBOs();
}
}