gsdx-d3d11: Fix CopyOffscreen bug

Update CopyOffscreen to accept the ps_shader value when doing StretchRect.
This fixes an issue where it was selecting the wrong PS for depth cache read.

Should (hopefully) fix SMT.
This commit is contained in:
Kojin 2018-12-23 08:38:23 -05:00 committed by lightningterror
parent f6df6b350b
commit dc2eed6ca1
1 changed files with 1 additions and 1 deletions

View File

@ -671,7 +671,7 @@ GSTexture* GSDevice11::CopyOffscreen(GSTexture* src, const GSVector4& sRect, int
if(GSTexture* src2 = src->IsMSAA() ? Resolve(src) : src)
{
StretchRect(src2, sRect, rt, dRect, m_convert.ps[format == DXGI_FORMAT_R16_UINT ? 1 : 0], NULL);
StretchRect(src2, sRect, rt, dRect, m_convert.ps[ps_shader], NULL);
if(src2 != src) Recycle(src2);
}