[Bf-blender-cvs] [e03df90bf36] master: Cycles: Fix compilation in debug mode
Sergey Sharybin
noreply at git.blender.org
Tue Oct 24 12:09:45 CEST 2017
Commit: e03df90bf36f907a99ebd8cba6cf03cf05ca71a3
Author: Sergey Sharybin
Date: Tue Oct 24 12:09:02 2017 +0200
Branches: master
https://developer.blender.org/rBe03df90bf36f907a99ebd8cba6cf03cf05ca71a3
Cycles: Fix compilation in debug mode
Please check compilation before committing refactor changes!
===================================================================
M intern/cycles/device/device.cpp
M intern/cycles/device/device_memory.h
===================================================================
diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp
index 41fbe7ce81b..1a3a3846c25 100644
--- a/intern/cycles/device/device.cpp
+++ b/intern/cycles/device/device.cpp
@@ -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,
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));
diff --git a/intern/cycles/device/device_memory.h b/intern/cycles/device/device_memory.h
index 7bf8bdc1cea..e6b2d059ef3 100644
--- a/intern/cycles/device/device_memory.h
+++ b/intern/cycles/device/device_memory.h
@@ -303,7 +303,7 @@ public:
data_width = width;
data_height = height;
data_depth = depth;
- assert(device_ptr == 0);
+ assert(device_pointer == 0);
return get_data();
}
@@ -331,7 +331,7 @@ public:
data_width = width;
data_height = height;
data_depth = depth;
- assert(device_ptr == 0);
+ assert(device_pointer == 0);
return get_data();
}
More information about the Bf-blender-cvs
mailing list