Commit 989e0987 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

screencast: Ensure that there is current OpenGL context when recording a window

We need an OpenGL context otherwise we may hit an assert in libepoxy.

BUG: 425869
parent 80554a3e
......@@ -99,6 +99,7 @@ private:
if (m_damagedRegion.isEmpty()) {
return;
}
effects->makeOpenGLContextCurrent();
EGLFence fence(kwinApp()->platform()->sceneEglDisplay());
QSharedPointer<GLTexture> frameTexture(m_toplevel->effectWindow()->sceneWindow()->windowTexture());
const bool wasYInverted = frameTexture->isYInverted();
......
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