From 22c7a4de0c3810fcfc1099843e42b315c366a7c5 Mon Sep 17 00:00:00 2001 From: Kai-Hwa Yao Date: Mon, 10 Jul 2017 17:44:14 -0700 Subject: Removed spGetTranslationUnitCode; Unified EntryPointResult/TranslationUnitResult, added helper functionality; Ensure null termination when printing raw data --- tools/glslang/glslang.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/glslang/glslang.cpp') 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()); } } -- cgit v1.2.3