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:
Brecht Van Lommel
2014-03-13 14:16:42 +01:00
parent 23fd670c39
commit f959e3d4ba

View File

@@ -39,7 +39,10 @@ void LookupTables::device_update(Device *device, DeviceScene *dscene)
if(!need_update)
return;
device->tex_alloc("__lookup_table", dscene->lookup_table);
device->tex_free(dscene->lookup_table);
if(lookup_tables.size() > 0)
device->tex_alloc("__lookup_table", dscene->lookup_table);
need_update = false;
}