Fix Cycles assert when resizing rendererd viewport.
This commit is contained in:
parent
b129ea843a
commit
4a3ddd8a7a
|
@ -434,7 +434,10 @@ public:
|
|||
void alloc_to_device(size_t width, size_t height, size_t depth = 0)
|
||||
{
|
||||
device_vector<T>::alloc(width, height, depth);
|
||||
device_memory::device_alloc();
|
||||
|
||||
if(!device_memory::device_pointer) {
|
||||
device_memory::device_alloc();
|
||||
}
|
||||
}
|
||||
|
||||
T *copy_from_device(int y, int w, int h)
|
||||
|
|
Loading…
Reference in New Issue