summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureDecoder_Generic.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2019-04-20 23:21:42 -0400
committerGitHub <noreply@github.com>2019-04-20 23:21:42 -0400
commit18589e50ab44957f4955596ac238d900f28959c3 (patch)
tree4b9e99f688bcd56cc0c5e0182fefadacbbaaa73b /Source/Core/VideoCommon/TextureDecoder_Generic.cpp
parent4b1adab7856cb2dd28418a1d748a0e8cebf94a2f (diff)
parentb09a0e1a603732dc91856418f874ac8033790f57 (diff)
Merge pull request #7925 from stenzek/xfb-stride
TextureCache: Simplify XFB reconstruction
Diffstat (limited to 'Source/Core/VideoCommon/TextureDecoder_Generic.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureDecoder_Generic.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureDecoder_Generic.cpp b/Source/Core/VideoCommon/TextureDecoder_Generic.cpp
index ec74c21db4..4a2b516e7c 100644
--- a/Source/Core/VideoCommon/TextureDecoder_Generic.cpp
+++ b/Source/Core/VideoCommon/TextureDecoder_Generic.cpp
@@ -346,5 +346,8 @@ void _TexDecoder_DecodeImpl(u32* dst, const u8* src, int width, int height, Text
}
break;
}
+ case TextureFormat::XFB:
+ TexDecoder_DecodeXFB(reinterpret_cast<u8*>(dst), src, width, height, width * 2);
+ break;
}
}