<< Pixel Bender Developers

Discussion Area

ask questions, discuss topics, solve problems

Discussion Home | About | Threads By Date | Search

&& evaluates incorrect?


Thread posted 01/17/10 by tschmimo last edited 01/17/10
8,688 views, 0 comments.

Title
&& evaluates incorrect?

Content

can somebody tell me, why

dst = sampleNearest(src,outCoord());
if (dst.r == 1.0)
if (dst.b == 1.0)
if (dst.g == 1.0) { ... }

does what it should, i.e. find white, but

dst = sampleNearest(src,outCoord());
if ((dst.r == 1.0) && (dst.b == 1.0) && (dst.g == 1.0)) { ... }

doesn't?

thanks for your thoughts

Thomas