Cycles: Fix compilation in debug mode
Please check compilation before committing refactor changes!
This commit is contained in:
parent
eccd18a91f
commit
e03df90bf3
@ -88,7 +88,7 @@ Device::~Device()
|
|||||||
void Device::draw_pixels(device_memory& rgba, int y, int w, int h, int dx, int dy, int width, int height, bool transparent,
|
void Device::draw_pixels(device_memory& rgba, int y, int w, int h, int dx, int dy, int width, int height, bool transparent,
|
||||||
const DeviceDrawParams &draw_params)
|
const DeviceDrawParams &draw_params)
|
||||||
{
|
{
|
||||||
assert(mem.type == MEM_PIXELS);
|
assert(rgba.type == MEM_PIXELS);
|
||||||
|
|
||||||
mem_copy_from(rgba, y, w, h, rgba.memory_elements_size(1));
|
mem_copy_from(rgba, y, w, h, rgba.memory_elements_size(1));
|
||||||
|
|
||||||
|
@ -303,7 +303,7 @@ public:
|
|||||||
data_width = width;
|
data_width = width;
|
||||||
data_height = height;
|
data_height = height;
|
||||||
data_depth = depth;
|
data_depth = depth;
|
||||||
assert(device_ptr == 0);
|
assert(device_pointer == 0);
|
||||||
|
|
||||||
return get_data();
|
return get_data();
|
||||||
}
|
}
|
||||||
@ -331,7 +331,7 @@ public:
|
|||||||
data_width = width;
|
data_width = width;
|
||||||
data_height = height;
|
data_height = height;
|
||||||
data_depth = depth;
|
data_depth = depth;
|
||||||
assert(device_ptr == 0);
|
assert(device_pointer == 0);
|
||||||
|
|
||||||
return get_data();
|
return get_data();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user