mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 15:36:26 +00:00
rsx: Implement image copy between 2D -> 3C/CUBE with scaling support.
This commit is contained in:
parent
bd7715b180
commit
767979ea44
2 changed files with 52 additions and 45 deletions
|
|
@ -258,14 +258,12 @@ namespace gl
|
|||
}
|
||||
else
|
||||
{
|
||||
ensure(dst_image->get_target() == gl::texture::target::texture2D);
|
||||
|
||||
auto _blitter = gl::g_hw_blitter;
|
||||
const areai src_rect = { src_x, src_y, src_x + src_w, src_y + src_h };
|
||||
const areai dst_rect = { slice.dst_x, slice.dst_y, slice.dst_x + slice.dst_w, slice.dst_y + slice.dst_h };
|
||||
|
||||
gl::texture* _dst;
|
||||
if (src_image->get_internal_format() == dst_image->get_internal_format() && slice.level == 0)
|
||||
if (src_image->get_internal_format() == dst_image->get_internal_format() && slice.level == 0 && slice.dst_z == 0)
|
||||
{
|
||||
_dst = dst_image;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue