mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 13:34:44 -04:00
Check gl context before deleting defaultTexture in flow_gl.
This commit is contained in:
@ -1351,11 +1351,11 @@ YACReaderPageFlowGL::~YACReaderPageFlowGL()
|
||||
delete(images[i].texture);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (defaultTexture != nullptr) {
|
||||
delete defaultTexture;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user