Cycles: device code refactoring, no functional changes.
This commit is contained in:
@@ -35,9 +35,9 @@ Session::Session(const SessionParams& params_)
|
||||
: params(params_),
|
||||
tile_manager(params.progressive, params.samples, params.tile_size, params.min_size)
|
||||
{
|
||||
device_use_gl = ((params.device_type != DEVICE_CPU) && !params.background);
|
||||
device_use_gl = ((params.device.type != DEVICE_CPU) && !params.background);
|
||||
|
||||
device = Device::create(params.device_type, params.background, params.threads);
|
||||
device = Device::create(params.device, params.background, params.threads);
|
||||
buffers = new RenderBuffers(device);
|
||||
display = new DisplayBuffer(device);
|
||||
|
||||
|
Reference in New Issue
Block a user