diff options
| author | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2009-02-14 09:04:40 +0000 |
|---|---|---|
| committer | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2009-02-14 09:04:40 +0000 |
| commit | efa5fe5eb71b132f951d92e738deed62fbd67dc4 (patch) | |
| tree | 25672a0b8191e4129f570101dcedddd7ab933990 /Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp | |
| parent | 79947e5d29bdabffdf53ef876e48eb05c376e79c (diff) | |
New compact texture type for OGL/D3D: IA4. Thanks for the IA4->IA8 unpacker hyperiris! Too bad that D3D supports IA4 natively while OGL is a bit buggy (treats LUM4_ALPHA4 as LUM8_ALPHA8).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2238 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp index 964f9be933..938b68ec4f 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp @@ -179,6 +179,9 @@ void TextureCache::Load(int stage, u32 address, int width, int height, int forma case PC_TEX_FMT_RGB565: d3d_fmt = D3DFMT_R5G6B5; break; + case PC_TEX_FMT_IA4: + d3d_fmt = D3DFMT_A4L4; + break; case PC_TEX_FMT_I8: d3d_fmt = D3DFMT_A8P8; break; |
