Fix Cycles allocating too much device memory, after recent memory refactoring.

Spotted by Ha Hyung-jin, thanks!
This commit is contained in:
Brecht Van Lommel 2018-01-29 14:51:22 +01:00
parent 282b3d0fcd
commit fb941679bb
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ public:
void alloc_to_device(size_t num, bool shrink_to_fit = true)
{
size_t new_size = num*sizeof(T);
size_t new_size = num;
bool reallocate;
if(shrink_to_fit) {