GLSL compile fix, compare dot() result against scalar

This commit is contained in:
baldurk
2014-11-16 12:14:19 +00:00
parent 04b108efa0
commit 4a34f5961b
+1 -1
View File
@@ -144,7 +144,7 @@ void main(void)
else
{
// if only one channel is selected
if(dot(Channels, 1.0f.xxxx) == 1.0f.xxxx)
if(dot(Channels, 1.0f.xxxx) == 1.0f)
{
// if it's alpha, just move it into rgb
// otherwise, select the channel that's on and replicate it across all channels