mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
Fix a number of resource leaks, both D3D11-only and general.
Additionally, fix D3D11 BlitFramebuffer
This commit is contained in:
1 parent
13a3d179d5
commit
2fabe3e1c5
10 files changed
+47
-39
No files matched your search
@@ -505,7 +505,7 @@ VirtualFramebuffer *FramebufferManagerCommon::DoSetRenderFrameBuffer(const Frame
|
||||
void FramebufferManagerCommon::DestroyFramebuf(VirtualFramebuffer *v) {
|
||||
textureCache_->NotifyFramebuffer(v->fb_address, v, NOTIFY_FB_DESTROYED);
|
||||
if (v->fbo) {
|
||||
delete v->fbo;
|
||||
v->fbo->Release();
|
||||
v->fbo = nullptr;
|
||||
}
|
||||
|
||||
@@ -1028,7 +1028,7 @@ void FramebufferManagerCommon::DecimateFBOs() {
|
||||
for (auto it = tempFBOs_.begin(); it != tempFBOs_.end(); ) {
|
||||
int age = frameLastFramebufUsed_ - it->second.last_frame_used;
|
||||
if (age > FBO_OLD_AGE) {
|
||||
delete it->second.fbo;
|
||||
it->second.fbo->Release();
|
||||
tempFBOs_.erase(it++);
|
||||
} else {
|
||||
++it;
|
||||
|
||||
Reference in new issue
Block a user