Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-02-13 20:22:10 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-02-13 20:22:10 +0300
commit21dbfb7828f5085ec2c94d304ba19a6faa6303cc (patch)
treefd1d85ca9ad6ec8990bb0c1d1b2c8a331d75f321
parent581c81901363176b1ce775472ea7c9f97ee504a9 (diff)
Cycles: Fix wrong transparent shadows with CUDA
Was a bug in recent optimization commit.
-rw-r--r--intern/cycles/kernel/bvh/bvh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/bvh/bvh.h b/intern/cycles/kernel/bvh/bvh.h
index 2055746a68d..dfd70106011 100644
--- a/intern/cycles/kernel/bvh/bvh.h
+++ b/intern/cycles/kernel/bvh/bvh.h
@@ -381,7 +381,7 @@ ccl_device_inline void sort_intersections(Intersection *hits, uint num_hits)
int i, j;
for(i = 0; i < num_hits; ++i) {
for(j = 0; j < num_hits - 1; ++j) {
- if(hits[j].t < hits[j + 1].t) {
+ if(hits[j].t > hits[j + 1].t) {
struct Intersection tmp = hits[j];
hits[j] = hits[j + 1];
hits[j + 1] = tmp;