Skip to content

Commit

Permalink
Missing fix for commit 9e2c5b0.
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe2933 committed Dec 5, 2024
1 parent 2b4d3b5 commit 2026ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/gltf/AssetGpuBuffers.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ namespace vk_gltf_viewer::gltf {
primitiveAndIndexBytesPairs | std::views::values,
gpu.isUmaDevice ? vk::BufferUsageFlagBits::eIndexBuffer : vk::BufferUsageFlagBits::eTransferSrc);

if (!gpu.isUmaDevice) {
if (!gpu.isUmaDevice && !vku::contains(gpu.allocator.getAllocationMemoryProperties(buffer.allocation), vk::MemoryPropertyFlagBits::eDeviceLocal)) {
vku::AllocatedBuffer dstBuffer { gpu.allocator, vk::BufferCreateInfo {
{},
buffer.size,
Expand Down

0 comments on commit 2026ef6

Please sign in to comment.