Add missing OpenGL resource deinitialization in viewer

This commit is contained in:
John Preston 2023-09-23 18:33:26 +04:00
parent ce8e42bcc2
commit 116ae04f54
1 changed files with 12 additions and 0 deletions

View File

@ -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(