From 0959c565fa3a23570e4c57043e4c9dadbe44a004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 23 Jun 2015 22:10:08 +0200 Subject: [PATCH] fixed OpenGL textures deletion --- common/gl/yacreader_flow_gl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/gl/yacreader_flow_gl.cpp b/common/gl/yacreader_flow_gl.cpp index 1f27a3c8..6ab56239 100644 --- a/common/gl/yacreader_flow_gl.cpp +++ b/common/gl/yacreader_flow_gl.cpp @@ -806,6 +806,8 @@ void YACReaderFlowGL::populate(int n) void YACReaderFlowGL::reset() { + makeCurrent(); + startAnimationTimer(); currentSelected = 0; @@ -821,6 +823,8 @@ void YACReaderFlowGL::reset() if(!hasBeenInitialized) lazyPopulateObjects = -1; + + doneCurrent(); } void YACReaderFlowGL::reload()