forked from bartvdbraak/blender
Fix Cycles allocating too much device memory, after recent memory refactoring.
Spotted by Ha Hyung-jin, thanks!
This commit is contained in:
parent
282b3d0fcd
commit
fb941679bb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user