projects
/
blender.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0f2d0ff
)
Cycles: Fix access undefined macro on non-MSVC compiler
author
Sergey Sharybin <sergey.vfx@gmail.com>
Wed, 26 Apr 2017 08:00:31 +0000
(10:00 +0200)
committer
Sergey Sharybin <sergey.vfx@gmail.com>
Wed, 26 Apr 2017 08:00:31 +0000
(10:00 +0200)
Also rremove trailing whitespace.
intern/cycles/render/shader.cpp
patch
|
blob
|
history
diff --git
a/intern/cycles/render/shader.cpp
b/intern/cycles/render/shader.cpp
index 015d0fa087bd8dafc67ae05d1c0512eb9aacc8b4..ef89288f16799263bd732b896bcf540d398b97fb 100644
(file)
--- a/
intern/cycles/render/shader.cpp
+++ b/
intern/cycles/render/shader.cpp
@@
-53,10
+53,10
@@
static float beckmann_table_slope_max()
/* MSVC 2015 needs this ugly hack to prevent a codegen bug on x86
* see T50176 for details
*/
-#if
_MSC_VER==1900
-# define MSVC_VOLATILE volatile
+#if
defined(_MSC_VER) && (_MSC_VER == 1900)
+# define MSVC_VOLATILE volatile
#else
-# define MSVC_VOLATILE
+# define MSVC_VOLATILE
#endif
/* Paper used: Importance Sampling Microfacet-Based BSDFs with the