From ae309405a50082b698860caba6f0d60c2f36d7b4 Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Fri, 3 Sep 2010 22:31:52 +0000 Subject: [PATCH] DX9/DX11: Missing breaks are just as evil as static variables. This commit might fix some issues when colors were drawn slightly wrong in the DX plugins but correct in OpenGL. So please test this ;) Thanks to Billiard for spotting. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6171 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoDX11/Src/TextureCache.cpp | 1 + Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/Source/Plugins/Plugin_VideoDX11/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoDX11/Src/TextureCache.cpp index 4cfbace2e8..5d4159a671 100644 --- a/Source/Plugins/Plugin_VideoDX11/Src/TextureCache.cpp +++ b/Source/Plugins/Plugin_VideoDX11/Src/TextureCache.cpp @@ -410,6 +410,7 @@ void TextureCache::CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, boo case 3: // Z16 //? colmat[1] = colmat[5] = colmat[9] = colmat[12] = 1.0f; cbufid = 13; + break; case 11: // Z16 (reverse order) colmat[0] = colmat[4] = colmat[8] = colmat[13] = 1.0f; cbufid = 14; diff --git a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp index 79c086abad..a677380423 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp @@ -479,6 +479,7 @@ void TextureCache::CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, boo break; case 3: // Z16 //? colmat[1] = colmat[5] = colmat[9] = colmat[12] = 1.0f; + break; case 11: // Z16 (reverse order) colmat[0] = colmat[4] = colmat[8] = colmat[13] = 1.0f; break;