mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
GLSL compile fix, compare dot() result against scalar
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user