mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Check gl context before deleting defaultTexture in flow_gl.
This commit is contained in:
parent
936dd63d4c
commit
3fce9b346e
@ -1351,10 +1351,10 @@ YACReaderPageFlowGL::~YACReaderPageFlowGL()
|
||||
delete(images[i].texture);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (defaultTexture != nullptr) {
|
||||
delete defaultTexture;
|
||||
if (defaultTexture != nullptr) {
|
||||
delete defaultTexture;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user