gsdx ogl: purge debug message in destructor

Allow to see latest error and avoid noise in Valgrind log
This commit is contained in:
Gregory Hainaut 2016-07-20 10:00:00 +02:00
parent b6a55f50ab
commit 1e3c46a6bb
1 changed files with 4 additions and 0 deletions

View File

@ -138,6 +138,10 @@ GSDeviceOGL::~GSDeviceOGL()
// Must be done after the destruction of all shader/program objects
delete m_shader;
m_shader = NULL;
// Purge any pending message to reduce noise in Valgrind (potential memory leak
// in Mesa driver that doesn't free internal buffer when the context is destroyed)
CheckDebugLog();
}
void GSDeviceOGL::GenerateProfilerData()