Fix Cycles assert when resizing rendererd viewport.

This commit is contained in:
Brecht Van Lommel 2018-01-23 13:01:02 +01:00
parent b129ea843a
commit 4a3ddd8a7a
1 changed files with 4 additions and 1 deletions

View File

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