Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2022-08-29 09:34:47 +0300
committerJeroen Bakker <jeroen@blender.org>2022-08-29 09:34:47 +0300
commit377b81ac0733ff25dba54f9fce6e99f66073e761 (patch)
treedf289c690e7b723c6fe9dfd68215da1b05f4e049 /source/blender/gpu/metal
parentc4d9dca4a6822a4c8c89e0c57186acbe168b88dd (diff)
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.
Diffstat (limited to 'source/blender/gpu/metal')
-rw-r--r--source/blender/gpu/metal/mtl_query.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/metal/mtl_query.mm b/source/blender/gpu/metal/mtl_query.mm
index f574140531d..73e5f72dc5b 100644
--- a/source/blender/gpu/metal/mtl_query.mm
+++ b/source/blender/gpu/metal/mtl_query.mm
@@ -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);