Merge branch 'master' into blender2.8

This commit is contained in:
Sergey Sharybin
2018-12-07 15:00:48 +01:00
2 changed files with 5 additions and 1 deletions

View File

@@ -1484,7 +1484,11 @@ class CyclesPreferences(bpy.types.AddonPreferences):
return self.get_num_gpu_devices() > 0
def draw_impl(self, layout, context):
available_device_types = self.get_device_types(context)
layout.label(text="Cycles Compute Device:")
if len(available_device_types) == 1:
layout.label(text="No compatible GPUs found", icon='INFO')
return
layout.row().prop(self, "compute_device_type", expand=True)
cuda_devices, opencl_devices = self.get_devices()

View File

@@ -645,7 +645,7 @@ bool OpenCLInfo::device_supported(const string& platform_name,
return true;
}
if(platform_name == "Apple" && device_type == CL_DEVICE_TYPE_GPU) {
return true;
return false;
}
return false;
}