diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-07-01 18:57:48 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-07-01 18:57:48 +0400 |
commit | d2c5549f8e17cf5a2e5939ef6728d9391fca576c (patch) | |
tree | 4a2aabef5624cdf19ba812181d0dc998a5b89ee0 | |
parent | 4ff22bd097e979e07622793d1f44d7419fb73efd (diff) |
Cycles: fix crash with image texture nodes (on windows).
-rw-r--r-- | intern/cycles/blender/CMakeLists.txt | 10 | ||||
-rw-r--r-- | source/blender/nodes/intern/SHD_nodes/SHD_tex_environment.c | 2 | ||||
-rw-r--r-- | source/blender/nodes/intern/SHD_nodes/SHD_tex_image.c | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/intern/cycles/blender/CMakeLists.txt b/intern/cycles/blender/CMakeLists.txt index 50cd8502720..8d7f2b1504b 100644 --- a/intern/cycles/blender/CMakeLists.txt +++ b/intern/cycles/blender/CMakeLists.txt @@ -66,8 +66,11 @@ ADD_DEPENDENCIES(cycles_blender bf_rna) IF(WIN32) TARGET_LINK_LIBRARIES(cycles_blender ${PYTHON_LINKFLAGS}) - TARGET_LINK_LIBRARIES(cycles_blender debug ${PYTHON_LIBRARIES}_d) - TARGET_LINK_LIBRARIES(cycles_blender optimized ${PYTHON_LIBRARIES}) + + FILE_LIST_SUFFIX(PYTHON_LIBRARIES_DEBUG "${PYTHON_LIBRARIES}" "_d") + TARGET_LINK_LIBRARIES_DEBUG(cycles_blender "${PYTHON_LIBRARIES_DEBUG}") + TARGET_LINK_LIBRARIES_OPTIMIZED(cycles_blender "${PYTHON_LIBRARIES}") + UNSET(PYTHON_LIBRARIES_DEBUG) SET_TARGET_PROPERTIES(cycles_blender PROPERTIES PREFIX "lib") SET_TARGET_PROPERTIES(cycles_blender PROPERTIES SUFFIX ".pyd") @@ -82,8 +85,7 @@ INSTALL(TARGETS cycles_blender LIBRARY DESTINATION ${CYCLES_INSTALL_PATH}/cycles IF(WIN32) FILE(GLOB OIIO_DLLS "${CYCLES_OIIO}/bin/*.dll") - FILE(GLOB BOOST_DLLS "${CYCLES_BOOST}/lib/*.dll") - INSTALL(FILES ${OIIO_DLLS} ${BOOST_DLLS} + INSTALL(FILES ${OIIO_DLLS} DESTINATION ${CYCLES_INSTALL_PATH}/cycles) ENDIF() diff --git a/source/blender/nodes/intern/SHD_nodes/SHD_tex_environment.c b/source/blender/nodes/intern/SHD_nodes/SHD_tex_environment.c index bdcc9664a02..d295a899e51 100644 --- a/source/blender/nodes/intern/SHD_nodes/SHD_tex_environment.c +++ b/source/blender/nodes/intern/SHD_nodes/SHD_tex_environment.c @@ -68,7 +68,7 @@ static void node_shader_exec_tex_environment(void *data, bNode *node, bNodeStack if(ibuf) { float u= (atan2f(vec[1], vec[0]) + (float)M_PI)/(2*M_PI); float v= atan2f(vec[2], hypotf(vec[0], vec[1]))/M_PI + 0.5f; - float rgb[3]; + float rgb[4]; ibuf_sample(ibuf, u, v, 0.0f, 0.0f, rgb); diff --git a/source/blender/nodes/intern/SHD_nodes/SHD_tex_image.c b/source/blender/nodes/intern/SHD_nodes/SHD_tex_image.c index 0a8fb0db109..702d2b91e99 100644 --- a/source/blender/nodes/intern/SHD_nodes/SHD_tex_image.c +++ b/source/blender/nodes/intern/SHD_nodes/SHD_tex_image.c @@ -66,7 +66,7 @@ static void node_shader_exec_tex_image(void *data, bNode *node, bNodeStack **in, ImBuf *ibuf= BKE_image_get_ibuf(ima, NULL); if(ibuf) { - float rgb[3]; + float rgb[4]; ibuf_sample(ibuf, vec[0], vec[1], 0.0f, 0.0f, rgb); |