mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-11 17:20:56 +00:00
Fix copy-paste of rich resource text
* We need to cache to the QString text on demand, which requires a context potentially sooner than paint/etc time.
This commit is contained in:
@@ -986,7 +986,7 @@ ShaderViewer *ShaderViewer::LoadEditor(ICaptureContext &ctx, QVariantMap data,
|
||||
|
||||
{
|
||||
QVariant v = data[lit("id")];
|
||||
RichResourceTextInitialise(v);
|
||||
RichResourceTextInitialise(v, &ctx);
|
||||
id = v.value<ResourceId>();
|
||||
}
|
||||
ShaderStage stage = (ShaderStage)data[lit("stage")].toUInt();
|
||||
|
||||
Reference in New Issue
Block a user