Account for OpenGLWindow::windowPixmap returning nullptr sometimes
This commit is contained in:
parent
405841caf2
commit
d4cd2b5a6a
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue