render: only use cache in offline mode

This commit is contained in:
itsmattkc
2022-09-23 12:31:17 -07:00
parent b19730b1f5
commit 825b06f7a7
4 changed files with 10 additions and 1 deletions
+5
View File
@@ -649,4 +649,9 @@ void RenderProcessor::ConvertToReferenceSpace(TexturePtr destination, TexturePtr
render_ctx_->BlitColorManaged(ctj, destination.get());
}
bool RenderProcessor::UseCache() const
{
return static_cast<RenderMode::Mode>(ticket_->property("mode").toInt()) == RenderMode::kOffline;
}
}