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
This commit is contained in:
parent
9935fe2546
commit
ae309405a5
|
@ -410,6 +410,7 @@ void TextureCache::CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, boo
|
||||||
case 3: // Z16 //?
|
case 3: // Z16 //?
|
||||||
colmat[1] = colmat[5] = colmat[9] = colmat[12] = 1.0f;
|
colmat[1] = colmat[5] = colmat[9] = colmat[12] = 1.0f;
|
||||||
cbufid = 13;
|
cbufid = 13;
|
||||||
|
break;
|
||||||
case 11: // Z16 (reverse order)
|
case 11: // Z16 (reverse order)
|
||||||
colmat[0] = colmat[4] = colmat[8] = colmat[13] = 1.0f;
|
colmat[0] = colmat[4] = colmat[8] = colmat[13] = 1.0f;
|
||||||
cbufid = 14;
|
cbufid = 14;
|
||||||
|
|
|
@ -479,6 +479,7 @@ void TextureCache::CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, boo
|
||||||
break;
|
break;
|
||||||
case 3: // Z16 //?
|
case 3: // Z16 //?
|
||||||
colmat[1] = colmat[5] = colmat[9] = colmat[12] = 1.0f;
|
colmat[1] = colmat[5] = colmat[9] = colmat[12] = 1.0f;
|
||||||
|
break;
|
||||||
case 11: // Z16 (reverse order)
|
case 11: // Z16 (reverse order)
|
||||||
colmat[0] = colmat[4] = colmat[8] = colmat[13] = 1.0f;
|
colmat[0] = colmat[4] = colmat[8] = colmat[13] = 1.0f;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue