D3D11: Use appropriate shader for PEEK_Z.
Trying to use GetDepthMatrixProgram outside of TCacheEntry::FromRenderTarget is a bad idea, so don't. Instead, use a shader which only copies the input. Fixes lens flare depth test in Twilight Princess. See http://code.google.com/p/dolphin-emu/issues/detail?id=5999 .
This commit is contained in:
parent
bad109402e
commit
f9d2f7e88c
|
@ -391,7 +391,7 @@ u32 Renderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data)
|
||||||
&RectToLock,
|
&RectToLock,
|
||||||
Renderer::GetTargetWidth(),
|
Renderer::GetTargetWidth(),
|
||||||
Renderer::GetTargetHeight(),
|
Renderer::GetTargetHeight(),
|
||||||
PixelShaderCache::GetDepthMatrixProgram(true),
|
PixelShaderCache::GetColorCopyProgram(true),
|
||||||
VertexShaderCache::GetSimpleVertexShader(),
|
VertexShaderCache::GetSimpleVertexShader(),
|
||||||
VertexShaderCache::GetSimpleInputLayout());
|
VertexShaderCache::GetSimpleInputLayout());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue