From 644dcbe173416b0be5262da6707b86d9e95d380d Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 26 May 2021 03:24:19 +0200 Subject: [PATCH] screencasting: do not attempt to copy a null texture It seldom happens, but it does happen. --- src/plugins/scenes/opengl/scene_opengl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/scenes/opengl/scene_opengl.cpp b/src/plugins/scenes/opengl/scene_opengl.cpp index 3d8c38d3f0..71e7da81d0 100644 --- a/src/plugins/scenes/opengl/scene_opengl.cpp +++ b/src/plugins/scenes/opengl/scene_opengl.cpp @@ -1593,7 +1593,7 @@ QSharedPointer OpenGLWindow::windowTexture() frame = static_cast(item->pixmap()->platformTexture()); } - if (frame && item->childItems().isEmpty()) { + if (frame && item->childItems().isEmpty() && frame->texture()) { return QSharedPointer(new GLTexture(*frame->texture())); } else { auto effectWindow = window()->effectWindow();