Ensure we don't hide an invalid buffer value that truncates to green

This commit is contained in:
baldurk
2019-09-18 13:55:27 +01:00
parent f415ba00bf
commit f8221d858d
+4 -1
View File
@@ -55,7 +55,10 @@ layout(binding = 0, std140) uniform constsbuf
void main()
{
Color = col;
if(col == vec4(0.0, 1.0, 0.0, 1.0))
Color = col;
else
Color = vec4(1.0, 0.0, 0.0, 1.0);
}
)EOSHADER";