screencasting: do not attempt to copy a null texture
It seldom happens, but it does happen.
This commit is contained in:
parent
870c1e5557
commit
644dcbe173
1 changed files with 1 additions and 1 deletions
|
@ -1593,7 +1593,7 @@ QSharedPointer<GLTexture> OpenGLWindow::windowTexture()
|
||||||
frame = static_cast<PlatformOpenGLSurfaceTexture *>(item->pixmap()->platformTexture());
|
frame = static_cast<PlatformOpenGLSurfaceTexture *>(item->pixmap()->platformTexture());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (frame && item->childItems().isEmpty()) {
|
if (frame && item->childItems().isEmpty() && frame->texture()) {
|
||||||
return QSharedPointer<GLTexture>(new GLTexture(*frame->texture()));
|
return QSharedPointer<GLTexture>(new GLTexture(*frame->texture()));
|
||||||
} else {
|
} else {
|
||||||
auto effectWindow = window()->effectWindow();
|
auto effectWindow = window()->effectWindow();
|
||||||
|
|
Loading…
Reference in a new issue