Fix bug where non-constant test in ?: on a constant results thought the result was const, when it is really a temporary.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27291 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2014-07-10 23:49:21 +00:00
parent a63faa7907
commit d3c123a034
3 changed files with 55 additions and 0 deletions

View File

@@ -116,4 +116,6 @@ void foo2()
p = -2147483647 / -1;
p = -2147483648 / -1;
p = 2147483647 / -1;
float f = vec4(7.8 < 2.4 ? -1.333 : 1.444).a;
f = vec4(inv.x < 2.4 ? -1.0 : 1.0).a; // not folded, ensuring no propagation
}