Cycles: Fix typo in flags check
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 24 Jan 2016 12:05:02 +0000 (17:05 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 24 Jan 2016 12:05:02 +0000 (17:05 +0500)
intern/cycles/device/device.cpp

index fd52b11c06d9536420bdc287ad25dd9e978c88aa..02e9b0551c9f1dc218ea33d405b3864dcd270666 100644 (file)
@@ -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;