Commit d4cd2b5a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Account for OpenGLWindow::windowPixmap returning nullptr sometimes

parent 405841ca
......@@ -1540,7 +1540,7 @@ QSharedPointer<GLTexture> OpenGLWindow::windowTexture()
{
auto frame = windowPixmap<OpenGLWindowPixmap>();
if (frame->children().isEmpty()) {
if (frame && frame->children().isEmpty()) {
return QSharedPointer<GLTexture>(new GLTexture(*frame->texture()));
} else {
auto effectWindow = window()->effectWindow();
......
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