Fix problem if the uninitialised variable value is NaN

This commit is contained in:
baldurk
2020-05-05 16:24:27 +01:00
parent 84fc7f7950
commit 646bb736fa
+2 -2
View File
@@ -2597,7 +2597,7 @@ void main()
; against the real thing when it's undefined. But we can at least expose it so that
; when manually checking we see the uninitialised values
%_uninit = OpLoad %float4 %priv_float4
%_x = OpVectorTimesScalar %float4 %_uninit %float_0_0
%_x = OpExtInst %float4 %glsl450 NClamp %_uninit %float4_0000 %float4_0000
%_out_float4 = OpFAdd %float4 %_x %float4_1234
)EOTEST",
R"EOTEST(
@@ -2605,7 +2605,7 @@ void main()
; against the real thing when it's undefined. But we can at least expose it so that
; when manually checking we see the uninitialised values
%_uninit = OpLoad %float4 %Color
%_x = OpVectorTimesScalar %float4 %_uninit %float_0_0
%_x = OpExtInst %float4 %glsl450 NClamp %_uninit %float4_0000 %float4_0000
%_out_float4 = OpFAdd %float4 %_x %float4_1234
)EOTEST",
});