mirror of
https://github.com/YACReader/yacreader
synced 2025-09-19 03:34:30 -04:00
fixed OpenGL textures deletion
This commit is contained in:
@ -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()
|
||||||
|
Reference in New Issue
Block a user