浏览代码

Merge pull request #6218 from lioncash/tcache

texture_cache/util: Fix src being used instead of dst within DeduceBlitImages case
bunnei 5 年之前
父节点
当前提交
8cdd86fa25
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video_core/texture_cache/util.cpp

+ 1 - 1
src/video_core/texture_cache/util.cpp

@@ -1139,7 +1139,7 @@ void DeduceBlitImages(ImageInfo& dst_info, ImageInfo& src_info, const ImageBase*
         dst_info.format = src->info.format;
         dst_info.format = src->info.format;
     }
     }
     if (!src && dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) {
     if (!src && dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) {
-        src_info.format = src->info.format;
+        src_info.format = dst->info.format;
     }
     }
 }
 }