Skip to content

Commit 10f6cd9

Browse files
committed
Fix issues with new API
1 parent ab81b81 commit 10f6cd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/nbl/scene/CSkinInstanceCache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class NBL_API CSkinInstanceCache final : public ISkinInstanceCache
3232
video::IGPUBuffer::SCreationParams creationParams = {};
3333
creationParams.size = size;
3434
creationParams.usage = asset::IBuffer::EUF_STORAGE_BUFFER_BIT;
35-
auto buffer = params.device->createBuffer(creationParams);
35+
auto buffer = params.device->createBuffer(std::move(creationParams));
3636
auto mreqs = buffer->getMemoryReqs();
3737
mreqs.memoryTypeBits &= params.device->getPhysicalDevice()->getDeviceLocalMemoryTypeBits();
3838
auto gpubufMem = params.device->allocate(mreqs, buffer.get());

include/nbl/video/utilities/CPropertyPool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class NBL_API CPropertyPool final : public IPropertyPool
5656
blocks[i].offset = 0ull;
5757
blocks[i].size = capacity * PropertySizes[i];
5858
params.size = blocks[i].size;
59-
blocks[i].buffer = device->createBuffer(params);
59+
blocks[i].buffer = device->createBuffer(std::move(params));
6060
auto bufferReqs = blocks[i].buffer->getMemoryReqs();
6161
bufferReqs.memoryTypeBits &= device->getPhysicalDevice()->getDeviceLocalMemoryTypeBits();
6262
auto gpubufferMem = device->allocate(bufferReqs, blocks[i].buffer.get());

0 commit comments

Comments
 (0)