Fix T39146: recent cycles CUDA regression in fix for T39114.
This commit is to be backported to the 2.70 release.
This commit is contained in:
@@ -39,6 +39,9 @@ void LookupTables::device_update(Device *device, DeviceScene *dscene)
|
|||||||
if(!need_update)
|
if(!need_update)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
device->tex_free(dscene->lookup_table);
|
||||||
|
|
||||||
|
if(lookup_tables.size() > 0)
|
||||||
device->tex_alloc("__lookup_table", dscene->lookup_table);
|
device->tex_alloc("__lookup_table", dscene->lookup_table);
|
||||||
|
|
||||||
need_update = false;
|
need_update = false;
|
||||||
|
Reference in New Issue
Block a user