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/bsdf_toon.h
parent8e125f278c52b38cf3be53b2296f0dc30885bae4 (diff)
Fix T65212: Cycles SSS failing on 32 bit
Diffstat (limited to 'intern/cycles/kernel/closure/bsdf_toon.h')
-rw-r--r--intern/cycles/kernel/closure/bsdf_toon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/kernel/closure/bsdf_toon.h b/intern/cycles/kernel/closure/bsdf_toon.h
index f37fd228087..cc5de21ed0e 100644
--- a/intern/cycles/kernel/closure/bsdf_toon.h
+++ b/intern/cycles/kernel/closure/bsdf_toon.h
@@ -42,6 +42,8 @@ typedef ccl_addr_space struct ToonBsdf {
float smooth;
} ToonBsdf;
+static_assert(sizeof(ShaderClosure) >= sizeof(ToonBsdf), "ToonBsdf is too large!");
+
/* DIFFUSE TOON */
ccl_device int bsdf_diffuse_toon_setup(ToonBsdf *bsdf)