From d435fd8957a204479c7f045aa34e722de626b7d4 Mon Sep 17 00:00:00 2001 From: Rodolfo Osvaldo Bogado Date: Wed, 5 Jan 2011 17:16:52 +0000 Subject: corrected depth copy shader in dx9/dx11 to improve accuracy when doing efb to texture for depth formats git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6751 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/TextureCacheBase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.cpp') diff --git a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp index a64230bed6..52edba3c8a 100644 --- a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp @@ -428,6 +428,8 @@ void TextureCache::CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, switch(copyfmt) { case 0: // Z4 + colmat[3] = colmat[7] = colmat[11] = colmat[15] = 1; + break; case 1: // Z8 case 8: // Z8 colmat[2] = colmat[6] = colmat[10] = colmat[14] = 1; @@ -474,7 +476,7 @@ void TextureCache::CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, cbufid = 12; break; - case 3: // Z16 //? + case 3: // Z16 colmat[1] = colmat[5] = colmat[9] = colmat[12] = 1.0f; cbufid = 13; break; -- cgit v1.2.3