HLSL: Fix #754: recognize type casts in if-statements separately from declarations.

This commit is contained in:
John Kessenich 2017-03-06 18:18:37 -07:00
parent 621c0e3d69
commit 057df2935a
4 changed files with 63 additions and 24 deletions

View file

@ -30,4 +30,6 @@ float4 PixelShaderFunction(float4 input) : COLOR0
if (float ii = input.z)
++ii;
++ii;
if (float(ii) == 1.0)
++ii;
}