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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-28 12:52:26 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-28 19:05:31 +0300
commit4df66dabb8887cf2ff281946ad7af10b165d09ae (patch)
treeae41c4d94591534b853a3414b4485f378e46b52e /intern/cycles/kernel/closure/bssrdf.h
parent8e125f278c52b38cf3be53b2296f0dc30885bae4 (diff)
Fix T65212: Cycles SSS failing on 32 bit
Diffstat (limited to 'intern/cycles/kernel/closure/bssrdf.h')
-rw-r--r--intern/cycles/kernel/closure/bssrdf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/kernel/closure/bssrdf.h b/intern/cycles/kernel/closure/bssrdf.h
index a7d9f90b443..125ca4dd830 100644
--- a/intern/cycles/kernel/closure/bssrdf.h
+++ b/intern/cycles/kernel/closure/bssrdf.h
@@ -30,6 +30,8 @@ typedef ccl_addr_space struct Bssrdf {
float channels;
} Bssrdf;
+static_assert(sizeof(ShaderClosure) >= sizeof(Bssrdf), "Bssrdf is too large!");
+
/* Planar Truncated Gaussian
*
* Note how this is different from the typical gaussian, this one integrates