Commit 5b46e01c authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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

(cherry picked from commit 989e0987)
parent 895ec1ad
......@@ -99,6 +99,7 @@ private:
if (m_damagedRegion.isEmpty()) {
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