forked from bartvdbraak/blender
Cycles: Fix access undefined macro on non-MSVC compiler
Also rremove trailing whitespace.
This commit is contained in:
parent
0f2d0ff124
commit
9623d93f14
@ -53,10 +53,10 @@ static float beckmann_table_slope_max()
|
|||||||
/* MSVC 2015 needs this ugly hack to prevent a codegen bug on x86
|
/* MSVC 2015 needs this ugly hack to prevent a codegen bug on x86
|
||||||
* see T50176 for details
|
* see T50176 for details
|
||||||
*/
|
*/
|
||||||
#if _MSC_VER==1900
|
#if defined(_MSC_VER) && (_MSC_VER == 1900)
|
||||||
# define MSVC_VOLATILE volatile
|
# define MSVC_VOLATILE volatile
|
||||||
#else
|
#else
|
||||||
# define MSVC_VOLATILE
|
# define MSVC_VOLATILE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Paper used: Importance Sampling Microfacet-Based BSDFs with the
|
/* Paper used: Importance Sampling Microfacet-Based BSDFs with the
|
||||||
|
Loading…
Reference in New Issue
Block a user