Fix array out of bounds bug in processing if-else-endif macros.

If we are not inside an if macro, we cannot simply decrease
elsetracker.

Fixes https://github.com/KhronosGroup/glslang/issues/29.
This commit is contained in:
Lei Zhang
2016-03-09 14:53:57 -05:00
parent f7497e289b
commit 24e4bc99ac
5 changed files with 27 additions and 3 deletions

View File

@@ -12,3 +12,4 @@ preprocessor.pragma.vert
preprocessor.simple.vert
preprocessor.success_if_parse_would_fail.vert
preprocessor.defined.vert
preprocessor.many.endif.vert