summaryrefslogtreecommitdiffstats
path: root/tools/glslang/glslang.cpp
diff options
context:
space:
mode:
authorKai-Hwa Yao <kyao@nvidia.com>2017-07-10 17:44:14 -0700
committerKai-Hwa Yao <kyao@nvidia.com>2017-07-10 17:54:50 -0700
commit22c7a4de0c3810fcfc1099843e42b315c366a7c5 (patch)
treee53bfd90d2b9e4b04d22f58548999a33b7944d46 /tools/glslang/glslang.cpp
parent61a816c1e898155aa93c5a740e2b7aad7d7b4fa1 (diff)
Removed spGetTranslationUnitCode; Unified EntryPointResult/TranslationUnitResult, added helper functionality; Ensure null termination when printing raw data
Diffstat (limited to 'tools/glslang/glslang.cpp')
-rw-r--r--tools/glslang/glslang.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/glslang/glslang.cpp b/tools/glslang/glslang.cpp
index e396528d9..f07937b97 100644
--- a/tools/glslang/glslang.cpp
+++ b/tools/glslang/glslang.cpp
@@ -66,7 +66,8 @@ static void dump(
fwrite(data, 1, size, fallbackStream);
// also output it for debug purposes
- OutputDebugStringA((char const*)data);
+ std::string str((char const*)data, size);
+ OutputDebugStringA(str.c_str());
}
}