summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureDecoder_Generic.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2019-03-24 13:10:01 +1000
committerStenzek <stenzek@gmail.com>2019-04-21 12:41:15 +1000
commitdbaba0062a057836b31455d7abe3fea6a20b99d8 (patch)
tree58501b837d02d08a1275e53b1580d72828eadaa4 /Source/Core/VideoCommon/TextureDecoder_Generic.cpp
parent4b1adab7856cb2dd28418a1d748a0e8cebf94a2f (diff)
TextureDecoder: Move XFB decoding to Common
This was previously missing for generic (which is used on ARM).
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;
}
}