Skip to content

Commit

Permalink
MetalDevice: Fix import of non-page-aligned buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Nov 10, 2024
1 parent e3e0fe6 commit 2bf0838
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/metal_device.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,7 @@ static void RunOnMainThread(F&& f)
}

map_ptr = static_cast<u8*>(memory);
memory_offset = page_offset;
}

return std::unique_ptr<MetalDownloadTexture>(new MetalDownloadTexture(
Expand Down

0 comments on commit 2bf0838

Please sign in to comment.