diff options
| -rw-r--r-- | source/slang/slang.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 5df180f46..dbd48753b 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -1120,6 +1120,10 @@ SLANG_API int spCompile( { // This should only be thrown if we already emitted a fatal error // message, so there is no reason to print something else. + // + // We still need to copy the diagnostic output into the variable + // that the user will query via the API. + req->mDiagnosticOutput = req->mSink.outputBuffer.ProduceString(); return 1; } catch (...) |
