From a523dfd2fd8c19ca0fbf9891a3be0988945d585f Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 4 May 2017 16:27:31 +0200 Subject: Fix T51412: Instant crash with texture plugged into the Displacement output The issue was caused by unlimited textures commit, root of the issue is that displacement code updates some of the image slots directly, so it needs to ensure device vectors are all proper size. --- intern/cycles/render/mesh.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'intern/cycles/render/mesh.cpp') diff --git a/intern/cycles/render/mesh.cpp b/intern/cycles/render/mesh.cpp index a4dc06c4345..33d1936659b 100644 --- a/intern/cycles/render/mesh.cpp +++ b/intern/cycles/render/mesh.cpp @@ -1944,6 +1944,7 @@ void MeshManager::device_update_displacement_images(Device *device, } } } + image_manager->device_prepare_update(dscene); foreach(int slot, bump_images) { pool.push(function_bind(&ImageManager::device_update_slot, image_manager, -- cgit v1.2.3