diff --git a/app/render/backend/opengl/openglbackend.cpp b/app/render/backend/opengl/openglbackend.cpp index 0ed6aef33..b05a204cd 100644 --- a/app/render/backend/opengl/openglbackend.cpp +++ b/app/render/backend/opengl/openglbackend.cpp @@ -167,7 +167,13 @@ void OpenGLBackend::ThreadCompletedFrame(NodeDependency path, QByteArray hash, N // Check if this frame has changed once again, in which case we may not want to draw it (it'll look jittery to the user) if (!TimeIsQueued(TimeRange(path.in(), path.in()))) { // FIXME: This texture is part of the texture cache and therefore volatile, we should probably copy it here instead - emit CachedFrameReady(path.in(), QVariant::fromValue(value.value()->texture())); + OpenGLTexturePtr tex = nullptr; + + if (!value.isNull()) { + tex = value.value()->texture(); + } + + emit CachedFrameReady(path.in(), QVariant::fromValue(tex)); } // Queue up a new frame for this worker