diff options
Diffstat (limited to 'intern/cycles/device/device.cpp')
-rw-r--r-- | intern/cycles/device/device.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp index fd52b11c06d..02e9b0551c9 100644 --- a/intern/cycles/device/device.cpp +++ b/intern/cycles/device/device.cpp @@ -313,7 +313,7 @@ vector<DeviceInfo>& Device::available_devices() { static vector<DeviceInfo> devices; - if(need_types_update) { + if(need_devices_update) { devices.clear(); #ifdef WITH_CUDA if(device_cuda_init()) @@ -335,7 +335,7 @@ vector<DeviceInfo>& Device::available_devices() device_network_info(devices); #endif - need_types_update = false; + need_devices_update = false; } return devices; |