From 9163fc05a7c1cdb39aca96d120e4a2b52a68fa5d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sun, 24 Jan 2016 17:05:02 +0500 Subject: Cycles: Fix typo in flags check --- intern/cycles/device/device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern/cycles/device/device.cpp') 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& Device::available_devices() { static vector devices; - if(need_types_update) { + if(need_devices_update) { devices.clear(); #ifdef WITH_CUDA if(device_cuda_init()) @@ -335,7 +335,7 @@ vector& Device::available_devices() device_network_info(devices); #endif - need_types_update = false; + need_devices_update = false; } return devices; -- cgit v1.2.3