mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
gl: Fix 2D->3D splat in CopyBufferToImage
This commit is contained in:
parent
1483941bea
commit
cdef752a9c
1 changed files with 1 additions and 1 deletions
|
@ -660,7 +660,7 @@ namespace gl
|
|||
// Memcpy
|
||||
for (u32 layer = dst_region.z, i = 0; i < dst_region.depth; ++i, ++layer)
|
||||
{
|
||||
const position3u src_offset = { dst_region.position.x, dst_region.position.y, 0 };
|
||||
const position3u src_offset = { dst_region.position.x, dst_region.position.y + (i * dst_region.height), 0 };
|
||||
const position3u dst_offset = { dst_region.position.x, dst_region.position.y, layer };
|
||||
g_hw_blitter->copy_image(cmd, scratch.get(), dst, 0, dst_level, src_offset, dst_offset, {dst_region.width, dst_region.height, 1});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue