From 2621cf67475e289789ec17b66602a06babb3373d Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Mon, 16 Feb 2009 23:01:37 +0000 Subject: [PATCH] Added a comment about A8P8 and groundwork for DXT1 textures git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2283 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp index 938b68ec4f..d411a8ca79 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp @@ -183,11 +183,16 @@ void TextureCache::Load(int stage, u32 address, int width, int height, int forma d3d_fmt = D3DFMT_A4L4; break; case PC_TEX_FMT_I8: - d3d_fmt = D3DFMT_A8P8; + d3d_fmt = D3DFMT_A8P8; // A hack which means the format is a packed + // 8-bit intensity texture. It is unpacked + // to A8L8 in D3DTexture.cpp break; case PC_TEX_FMT_IA8: d3d_fmt = D3DFMT_A8L8; break; + case PC_TEX_FMT_DXT1: + d3d_fmt = D3DFMT_DXT1; + break; } //Make an entry in the table