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:
Jeroen Bakker 2022-08-29 08:34:47 +02:00
parent c4d9dca4a6
commit 377b81ac07
1 changed files with 1 additions and 1 deletions

View File

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