diff --git a/app/src/main/cpp/skyline/gpu/texture/texture.cpp b/app/src/main/cpp/skyline/gpu/texture/texture.cpp index 17d623f6..4e3a5c47 100644 --- a/app/src/main/cpp/skyline/gpu/texture/texture.cpp +++ b/app/src/main/cpp/skyline/gpu/texture/texture.cpp @@ -875,7 +875,7 @@ namespace skyline::gpu { .subresourceRange = subresource, }); - if (layout != vk::ImageLayout::eTransferSrcOptimal) + if (source->layout != vk::ImageLayout::eTransferSrcOptimal) commandBuffer.pipelineBarrier(vk::PipelineStageFlagBits::eTransfer, vk::PipelineStageFlagBits::eTransfer, {}, {}, {}, vk::ImageMemoryBarrier{ .image = sourceBacking, .srcAccessMask = vk::AccessFlagBits::eTransferRead,