mirror of
https://github.com/edubart/otclient.git
synced 2025-12-20 23:47:12 +01:00
Fix market reload and a crash when exiting
This commit is contained in:
@@ -48,8 +48,7 @@ void FrameBuffer::internalCreate()
|
||||
FrameBuffer::~FrameBuffer()
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
if(g_app.isTerminated())
|
||||
g_logger.warning("FrameBuffer reference not released");
|
||||
assert(!g_app.isTerminated());
|
||||
#endif
|
||||
if(g_graphics.ok() && m_fbo != 0)
|
||||
glDeleteFramebuffers(1, &m_fbo);
|
||||
|
||||
Reference in New Issue
Block a user