Cycles: device code refactoring, no functional changes.

This commit is contained in:
Brecht Van Lommel
2012-01-04 18:06:32 +00:00
parent cd84a43334
commit 049ab98469
16 changed files with 437 additions and 120 deletions

View File

@@ -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);