From 8a0e12a10704dc2affb241817874317bdef335d1 Mon Sep 17 00:00:00 2001 From: Christoph Kubisch Date: Tue, 16 Apr 2019 09:50:48 +0200 Subject: [PATCH] TType::getCompleteString insert optional structure name --- glslang/Include/Types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/glslang/Include/Types.h b/glslang/Include/Types.h index 90341dcb..9b71801e 100644 --- a/glslang/Include/Types.h +++ b/glslang/Include/Types.h @@ -2019,6 +2019,11 @@ public: // Add struct/block members if (isStruct() && structure) { + if (typeName) { + appendStr(" "); + appendStr(typeName->c_str()); + appendStr(" "); + } appendStr("{"); for (size_t i = 0; i < structure->size(); ++i) { if (! (*structure)[i].type->hiddenMember()) {