Commit b617613b authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[scenes/opengl] Ensure there is current OpenGL context when destroying EffectFrame unstyled texture

Summary: BUG: 406671

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D20723
parent e4456347
......@@ -369,13 +369,16 @@ SceneOpenGL::~SceneOpenGL()
{
// do cleanup after initBuffer()
gs_debuggedScene = nullptr;
SceneOpenGL::EffectFrame::cleanup();
if (init_ok) {
delete m_syncManager;
// backend might be still needed for a different scene
delete m_backend;
if (init_ok) {
makeOpenGLContextCurrent();
}
SceneOpenGL::EffectFrame::cleanup();
delete m_syncManager;
// backend might be still needed for a different scene
delete m_backend;
}
static void scheduleVboReInit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment