Minor fixes

This commit is contained in:
Jérôme Leclercq
2022-02-21 20:46:37 +01:00
parent ad544a595d
commit a1b6f51398
8 changed files with 16 additions and 15 deletions

View File

@@ -1160,6 +1160,10 @@ namespace Nz
AppendVariableDeclaration(member.type.GetResultingValue(), member.name);
Append(";");
}
// Empty structs are not allowed in GLSL
if (first)
AppendLine("int dummy;");
}
LeaveScope(false);
AppendLine(";");