diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-08 13:02:54 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-08 13:02:54 +0300 |
commit | 712f7c36402bd9b195d9e32dd72552e3dfc9ca24 (patch) | |
tree | a82b0406475a2934ef6b21e430eb9fe65a34e1f9 /intern/cycles/kernel/kernel_globals.h | |
parent | ef7c36f5edf00bad99d5897758d780ae48cde6f3 (diff) |
Cycles: Make it possible to access KernelGlobals from split data initialization function
Diffstat (limited to 'intern/cycles/kernel/kernel_globals.h')
-rw-r--r-- | intern/cycles/kernel/kernel_globals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_globals.h b/intern/cycles/kernel/kernel_globals.h index 12d35787462..1c3884890bf 100644 --- a/intern/cycles/kernel/kernel_globals.h +++ b/intern/cycles/kernel/kernel_globals.h @@ -16,6 +16,9 @@ /* Constant Globals */ +#ifndef __KERNEL_GLOBALS_H__ +#define __KERNEL_GLOBALS_H__ + CCL_NAMESPACE_BEGIN /* On the CPU, we pass along the struct KernelGlobals to nearly everywhere in @@ -153,3 +156,4 @@ ccl_device float lookup_table_read_2D(KernelGlobals *kg, float x, float y, int o CCL_NAMESPACE_END +#endif /* __KERNEL_GLOBALS_H__ */ |