diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-07-07 13:34:23 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-07-07 13:34:23 -0700 |
| commit | f3fe9dddb8c528b4f9955d9105908600b4a8d0c8 (patch) | |
| tree | 8107b45190a0d8a33d07dcd6500ed0dfa939d530 /source/slang/emit.cpp | |
| parent | f70699c78235c33f909ffff87f8edf4b58b30c51 (diff) | |
Map HLSL `lerp` to GLSL `mix`
- Also fix a bug in `emit.cpp` where I wasn't detecting `__intrinsic` remaps that don't include `$` (this is a byproduct of changing the string index type to be unsigned; other bugs like this may be lurking)
Diffstat (limited to 'source/slang/emit.cpp')
| -rw-r--r-- | source/slang/emit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp index 5d85b4d57..df74d19e4 100644 --- a/source/slang/emit.cpp +++ b/source/slang/emit.cpp @@ -1466,7 +1466,7 @@ struct EmitVisitor { auto name = getStringOrIdentifierTokenValue(targetIntrinsicModifier->definitionToken); - if(name.IndexOf('$') < 0) + if(name.IndexOf('$') == -1) { // Simple case: it is just an ordinary name, so we call it like a builtin. // |
