[scenes/opengl] Destroy the lanczos filter when the backend is still alive
Summary: Currently, when the lanczos filter attempts to release acquired resources, the backend is already gone. To fix that we have to destroy the filter together with SceneOpenGL2. At that moment the backend is still alive. BUG: 403370 FIXED-IN: 5.15.0 Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D18367
This commit is contained in:
parent
79eeea6b58
commit
253f954e31
1 changed files with 5 additions and 0 deletions
|
@ -953,6 +953,11 @@ SceneOpenGL2::SceneOpenGL2(OpenGLBackend *backend, QObject *parent)
|
|||
|
||||
SceneOpenGL2::~SceneOpenGL2()
|
||||
{
|
||||
if (m_lanczosFilter) {
|
||||
makeOpenGLContextCurrent();
|
||||
delete m_lanczosFilter;
|
||||
m_lanczosFilter = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
QMatrix4x4 SceneOpenGL2::createProjectionMatrix() const
|
||||
|
|
Loading…
Reference in a new issue