explicitly deleted some gl objects to try addressing memory leaks

This commit is contained in:
itsmattkc
2019-09-08 12:21:02 +10:00
parent e174618f34
commit df1f2c0d8b
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -114,6 +114,11 @@ void olive::gl::Blit(ShaderPtr pipeline, bool flipped, QMatrix4x4 matrix) {
func->glDrawArrays(GL_TRIANGLES, 0, 6); func->glDrawArrays(GL_TRIANGLES, 0, 6);
pipeline->release(); pipeline->release();
m_vbo2.destroy();
m_vbo.destroy();
m_vao.release();
m_vao.destroy();
} }
void olive::gl::OCIOBlit(ShaderPtr pipeline, void olive::gl::OCIOBlit(ShaderPtr pipeline,
+1
View File
@@ -98,6 +98,7 @@ void RenderInstance::Stop()
buffer_.Destroy(); buffer_.Destroy();
// Destroy context // Destroy context
delete ctx_; delete ctx_;
// Destroy offscreen surface // Destroy offscreen surface