Cycles: Fix crash with environment maps and packed images

This commit is contained in:
Sergey Sharybin 2014-07-07 12:37:45 +06:00
parent 4299b00019
commit dc40928087
1 changed files with 1 additions and 0 deletions

View File

@ -488,6 +488,7 @@ void EnvironmentTextureNode::compile(OSLCompiler& compiler)
/* See comments in ImageTextureNode::compile about support
* of builtin images.
*/
image_manager = compiler.image_manager;
if(is_float == -1) {
if(builtin_data == NULL) {
is_float = (int)image_manager->is_float_image(filename, NULL, is_linear);