Cycles: Check ray state properly to avoid endless loop
authorMai Lavelle <mai.lavelle@gmail.com>
Tue, 28 Mar 2017 06:28:36 +0000 (02:28 -0400)
committerMai Lavelle <mai.lavelle@gmail.com>
Fri, 7 Apr 2017 10:06:08 +0000 (06:06 -0400)
commitd66ffaebef924dcfa1e5396852166760c07f0342
tree92de1e8ade7e031ffd2402f738ec98adc045c188
parente8e341b585430dfca96b85ed540b398bc0af93a1
Cycles: Check ray state properly to avoid endless loop

The state mask wasnt applied before comparison giving false results. It
shouldnt really happen that a ray state contains any flags that need to
be masked away, but if it does happen its better to not get stuck.
intern/cycles/device/device_split_kernel.cpp