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: 425869master
parent
80554a3e12
commit
989e0987d7
|
@ -99,6 +99,7 @@ private:
|
||||||
if (m_damagedRegion.isEmpty()) {
|
if (m_damagedRegion.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
effects->makeOpenGLContextCurrent();
|
||||||
EGLFence fence(kwinApp()->platform()->sceneEglDisplay());
|
EGLFence fence(kwinApp()->platform()->sceneEglDisplay());
|
||||||
QSharedPointer<GLTexture> frameTexture(m_toplevel->effectWindow()->sceneWindow()->windowTexture());
|
QSharedPointer<GLTexture> frameTexture(m_toplevel->effectWindow()->sceneWindow()->windowTexture());
|
||||||
const bool wasYInverted = frameTexture->isYInverted();
|
const bool wasYInverted = frameTexture->isYInverted();
|
||||||
|
|
Loading…
Reference in New Issue