Fix incorrect GL texture deletion.

This commit is contained in:
John Preston
2025-11-17 11:23:40 +04:00
parent 67bf796f1e
commit a7f046a617
4 changed files with 9 additions and 1 deletions

View File

@@ -163,6 +163,7 @@ void Panel::Incoming::RendererGL::init(QOpenGLFunctions &f) {
}
void Panel::Incoming::RendererGL::deinit(QOpenGLFunctions *f) {
_controlsShadowImage.destroy(f);
_textures.destroy(f);
_imageProgram = std::nullopt;
_texturedVertexShader = nullptr;

View File

@@ -401,10 +401,12 @@ void Viewport::RendererGL::deinit(QOpenGLFunctions *f) {
_noiseFramebuffer.destroy(f);
for (auto &data : _tileData) {
data.textures.destroy(f);
data.framebuffers.destroy(f);
}
_tileData.clear();
_tileDataIndices.clear();
_buttons.destroy(f);
_names.destroy(f);
}
void Viewport::RendererGL::setDefaultViewport(QOpenGLFunctions &f) {