Vulkan: Save textures using a memory copy.

This commit is contained in:
Unknown W. Brackets committed 2022-04-17 20:55:39 -07:00
1 parent cc119c923c
commit 34d0acac4e
2 files changed
+23 -10

No files matched your search

+1 -2
View File
@@ -628,8 +628,7 @@ void TextureReplacer::NotifyTextureDecoded(const ReplacedTextureDecodeInfo &repl
SimpleBuf<u32> saveBuf;
// TODO: Move the color conversion to the thread as well.
// Actually may be better to re-decode using expand32?
// Since we're copying, change the format meanwhile. Not much extra cost.
if (replacedInfo.fmt != ReplacedTextureFormat::F_8888) {
saveBuf.resize((pitch * h) / sizeof(u16));
switch (replacedInfo.fmt) {