diff --git a/src/plugins/scenes/opengl/scene_opengl.cpp b/src/plugins/scenes/opengl/scene_opengl.cpp index db52c74ce7..aa899c68f2 100644 --- a/src/plugins/scenes/opengl/scene_opengl.cpp +++ b/src/plugins/scenes/opengl/scene_opengl.cpp @@ -1137,7 +1137,7 @@ QSharedPointer OpenGLWindow::windowTexture() PlatformOpenGLSurfaceTexture *frame = nullptr; const SurfaceItem *item = surfaceItem(); - if (item) { + if (item && item->pixmap()) { frame = static_cast(item->pixmap()->platformTexture()); }