Fix compilation issue in MTLQueryPool::allocate_buffer.
This compilation issue happened due to multiple patches being handled at the same time one overwriting a correction of the other.
This commit is contained in:
parent
c4d9dca4a6
commit
377b81ac07
|
@ -30,7 +30,7 @@ void MTLQueryPool::allocate_buffer()
|
|||
{
|
||||
/* Allocate Metal buffer for visibility results. */
|
||||
size_t buffer_size_in_bytes = VISIBILITY_COUNT_PER_BUFFER * VISIBILITY_RESULT_SIZE_IN_BYTES;
|
||||
gpu::MTLBuffer *buffer = MTLContext::get_global_memory_manager().allocate_buffer(
|
||||
gpu::MTLBuffer *buffer = MTLContext::get_global_memory_manager().allocate(
|
||||
buffer_size_in_bytes, true);
|
||||
BLI_assert(buffer);
|
||||
buffer_.append(buffer);
|
||||
|
|
Loading…
Reference in New Issue