Fix float image loading crash in cycles after multithreading changes.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 6 May 2012 22:06:14 +0000 (22:06 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 6 May 2012 22:06:14 +0000 (22:06 +0000)
intern/cycles/render/image.cpp

index 3e6052338c0c65d617dae1ab85f99e5ce2ac7721..856363491ca2d8bf48c788a022911a7fbaa14ce4 100644 (file)
@@ -344,7 +344,7 @@ void ImageManager::device_load_image(Device *device, DeviceScene *dscene, int sl
        }
 
        if(is_float) {
-               string filename = path_filename(float_images[slot]->filename);
+               string filename = path_filename(float_images[slot - TEX_IMAGE_FLOAT_START]->filename);
                progress->set_status("Updating Images", "Loading " + filename);
 
                device_vector<float4>& tex_img = dscene->tex_float_image[slot - TEX_IMAGE_FLOAT_START];