Scene: set painted_screen in paintScreen

If it's not set but used by EffectsScreen that can cause crashes
This commit is contained in:
Xaver Hugl 2022-02-03 05:12:24 +01:00
parent 3f29ad6b22
commit 843cee3d66

View file

@ -220,6 +220,7 @@ void Scene::paintScreen(AbstractOutput *output, const QList<Toplevel *> &topleve
const QRect geo = output->geometry(); const QRect geo = output->geometry();
QRegion update = geo, repaint = geo, valid; QRegion update = geo, repaint = geo, valid;
painted_screen = output;
paintScreen(geo, repaint, &update, &valid, output->renderLoop(), createProjectionMatrix(output->geometry())); paintScreen(geo, repaint, &update, &valid, output->renderLoop(), createProjectionMatrix(output->geometry()));
clearStackingOrder(); clearStackingOrder();