Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device.cpp
| Context not available. | |||||
| switch(info.type) { | switch(info.type) { | ||||
| case DEVICE_CPU: | case DEVICE_CPU: | ||||
| device = device_cpu_create(info, stats); | device = device_cpu_create(info, stats, background); | ||||
| break; | break; | ||||
| #ifdef WITH_CUDA | #ifdef WITH_CUDA | ||||
| case DEVICE_CUDA: | case DEVICE_CUDA: | ||||
| Context not available. | |||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| if(device) | |||||
| device->info = info; | |||||
| return device; | return device; | ||||
| } | } | ||||
| Context not available. | |||||