[texture_cache] fix copy image again? (#2558)
Somehow I accidentally overwrote it with #2550 Reviewed-on: #2558 Co-authored-by: Maufeat <sahyno1996@gmail.com> Co-committed-by: Maufeat <sahyno1996@gmail.com>
This commit is contained in:
parent
d4427d90ea
commit
49ddf95c70
1 changed files with 3 additions and 0 deletions
|
@ -1377,6 +1377,9 @@ void TextureCacheRuntime::CopyImage(Image& dst, Image& src,
|
|||
// As per the size-compatible formats section of vulkan, copy manually via ReinterpretImage
|
||||
// these images that aren't size-compatible
|
||||
if (BytesPerBlock(src.info.format) != BytesPerBlock(dst.info.format)) {
|
||||
if (src.info.type == ImageType::Linear || dst.info.type == ImageType::Linear) {
|
||||
return;
|
||||
}
|
||||
auto oneCopy = VideoCommon::ImageCopy{
|
||||
.src_offset = VideoCommon::Offset3D(0, 0, 0),
|
||||
.dst_offset = VideoCommon::Offset3D(0, 0, 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue