Add missing OpenGL resource deinitialization in viewer
This commit is contained in:
parent
ce8e42bcc2
commit
116ae04f54
|
@ -255,6 +255,18 @@ void OverlayWidget::RendererGL::deinit(
|
||||||
_fillProgram = std::nullopt;
|
_fillProgram = std::nullopt;
|
||||||
_controlsProgram = std::nullopt;
|
_controlsProgram = std::nullopt;
|
||||||
_contentBuffer = 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(
|
void OverlayWidget::RendererGL::paint(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user