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>2014-09-26 00:03:49 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-09-26 00:03:49 +0400
commit2307bd7174da44284205d3dc18fb4845cac5cad0 (patch)
treea79c13846da48ff40e51697d44523b167b29d8e3 /intern/cycles/util/util_types.h
parent0929821590bf4e22447625ff9be0e38e4a74fede (diff)
Cycles: Keep ccl_always_inline always inlining the stuff
It works around strange shading bug when building with MSVC. If such weirdeness continues, we perhaps would need to use proper inline flags all the time. Anyway, lets see how things will behave now.
Diffstat (limited to 'intern/cycles/util/util_types.h')
-rw-r--r--intern/cycles/util/util_types.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/intern/cycles/util/util_types.h b/intern/cycles/util/util_types.h
index b98ee6faa8e..2a199e591bf 100644
--- a/intern/cycles/util/util_types.h
+++ b/intern/cycles/util/util_types.h
@@ -44,12 +44,7 @@
#define __KERNEL_WITH_SSE_ALIGN__
#if defined(_WIN32) && !defined(FREE_WINDOWS)
-
-# ifdef NDEBUG
-# define ccl_device_inline static __forceinline
-# else
-# define ccl_device_inline static
-# endif
+#define ccl_device_inline static __forceinline
#define ccl_align(...) __declspec(align(__VA_ARGS__))
#ifdef __KERNEL_64_BIT__
#define ccl_try_align(...) __declspec(align(__VA_ARGS__))