fixed OpenGL textures deletion

This commit is contained in:
Luis Ángel San Martín 2015-06-23 22:10:08 +02:00
parent b68596e606
commit 0959c565fa

View File

@ -806,6 +806,8 @@ void YACReaderFlowGL::populate(int n)
void YACReaderFlowGL::reset() void YACReaderFlowGL::reset()
{ {
makeCurrent();
startAnimationTimer(); startAnimationTimer();
currentSelected = 0; currentSelected = 0;
@ -821,6 +823,8 @@ void YACReaderFlowGL::reset()
if(!hasBeenInitialized) if(!hasBeenInitialized)
lazyPopulateObjects = -1; lazyPopulateObjects = -1;
doneCurrent();
} }
void YACReaderFlowGL::reload() void YACReaderFlowGL::reload()