From 4a34f5961b98b72cc6f6470a26a075ef83bd29c2 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 16 Nov 2014 12:14:19 +0000 Subject: [PATCH] GLSL compile fix, compare dot() result against scalar --- renderdoc/data/glsl/texdisplay.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/data/glsl/texdisplay.frag b/renderdoc/data/glsl/texdisplay.frag index 98d71c700..8fba75ce1 100644 --- a/renderdoc/data/glsl/texdisplay.frag +++ b/renderdoc/data/glsl/texdisplay.frag @@ -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