mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Add missing OpenGL resource deinitialization in viewer
This commit is contained in:
parent
ce8e42bcc2
commit
116ae04f54
1 changed files with 12 additions and 0 deletions
|
@ -255,6 +255,18 @@ void OverlayWidget::RendererGL::deinit(
|
|||
_fillProgram = std::nullopt;
|
||||
_controlsProgram = std::nullopt;
|
||||
_contentBuffer = std::nullopt;
|
||||
_controlsFadeImage.destroy(f);
|
||||
_radialImage.destroy(f);
|
||||
_documentBubbleImage.destroy(f);
|
||||
_themePreviewImage.destroy(f);
|
||||
_saveMsgImage.destroy(f);
|
||||
_footerImage.destroy(f);
|
||||
_captionImage.destroy(f);
|
||||
_groupThumbsImage.destroy(f);
|
||||
_controlsImage.destroy(f);
|
||||
for (auto &part : _storiesSiblingParts) {
|
||||
part.destroy(f);
|
||||
}
|
||||
}
|
||||
|
||||
void OverlayWidget::RendererGL::paint(
|
||||
|
|
Loading…
Add table
Reference in a new issue