[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
This commit is contained in:
parent
e4456347c4
commit
b617613bf7
1 changed files with 8 additions and 5 deletions
|
@ -369,14 +369,17 @@ SceneOpenGL::~SceneOpenGL()
|
|||
{
|
||||
// do cleanup after initBuffer()
|
||||
gs_debuggedScene = nullptr;
|
||||
SceneOpenGL::EffectFrame::cleanup();
|
||||
|
||||
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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue