mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 02:32:18 +00:00
Possible FBO mem leak fix #664
This commit is contained in:
parent
592d587228
commit
94fea5c38c
1 changed files with 2 additions and 1 deletions
|
@ -75,6 +75,7 @@ Framebuffer::Framebuffer( const char* name, const nvrhi::FramebufferDesc& desc )
|
|||
|
||||
Framebuffer::~Framebuffer()
|
||||
{
|
||||
apiObject.Reset();
|
||||
}
|
||||
|
||||
void Framebuffer::Init()
|
||||
|
@ -101,7 +102,7 @@ void Framebuffer::ResizeFramebuffers()
|
|||
tr.backend.ClearCaches();
|
||||
|
||||
// RB: FIXME I think allocating new Framebuffers lead to a memory leak
|
||||
//framebuffers.DeleteContents( true );
|
||||
framebuffers.DeleteContents( true );
|
||||
|
||||
uint32_t backBufferCount = deviceManager->GetBackBufferCount();
|
||||
globalFramebuffers.swapFramebuffers.Resize( backBufferCount );
|
||||
|
|
Loading…
Reference in a new issue