diff options
Diffstat (limited to 'source/compiler-core/slang-dxc-compiler.cpp')
| -rw-r--r-- | source/compiler-core/slang-dxc-compiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/compiler-core/slang-dxc-compiler.cpp b/source/compiler-core/slang-dxc-compiler.cpp index 6956a3627..fc42dfc40 100644 --- a/source/compiler-core/slang-dxc-compiler.cpp +++ b/source/compiler-core/slang-dxc-compiler.cpp @@ -133,8 +133,8 @@ public: // If it starts with ./ then attempt to strip it if (filePath.startsWith("./")) { - String remaining(filePath.subString(2, filePath.getLength() - 2)); - + const String remaining = filePath.getUnownedSlice().tail(2); + // Okay if we strip ./ and what we have is absolute, then it's the absolute path that we care about, // otherwise we just leave as is. if (Path::isAbsolute(remaining)) |
