mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed OpenGL textures deletion
This commit is contained in:
parent
b68596e606
commit
0959c565fa
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user