diff options
Diffstat (limited to 'source/slang/slang-options.cpp')
| -rw-r--r-- | source/slang/slang-options.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index 3e2bec07d..c76993ca4 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -514,6 +514,8 @@ struct OptionsParser SLANG_RETURN_ON_FAIL(StateSerializeUtil::loadState(reproName, buffer)); auto requestState = StateSerializeUtil::getRequest(buffer); + MemoryOffsetBase base; + base.set(buffer.getBuffer(), buffer.getCount()); // If we can find a directory, that exists, we will set up a file system to load from that directory ComPtr<ISlangFileSystem> fileSystem; @@ -527,7 +529,7 @@ struct OptionsParser } } - SLANG_RETURN_ON_FAIL(StateSerializeUtil::load(requestState, fileSystem, requestImpl)); + SLANG_RETURN_ON_FAIL(StateSerializeUtil::load(base, requestState, fileSystem, requestImpl)); if (argCursor < argEnd) { |
