diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-24 15:05:02 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-24 15:05:02 +0300 |
commit | 9163fc05a7c1cdb39aca96d120e4a2b52a68fa5d (patch) | |
tree | de6188e3c33e38ce6203cf62fa47ec89856bcf42 /intern/cycles/device | |
parent | 35c3e7b52283517aa9f43798f691c1881a89d386 (diff) |
Cycles: Fix typo in flags check
Diffstat (limited to 'intern/cycles/device')
-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; |