[d3d9] Fail GetRTData if src and dst have mismatching sizes

MySims tries to do this and needs this to fail,
otherwise mouse picking is off.
This commit is contained in:
Robin Kertels 2024-02-05 19:14:01 +01:00
parent e9a0fec5b3
commit ab3593185f
1 changed files with 3 additions and 0 deletions

View File

@ -1037,6 +1037,9 @@ namespace dxvk {
if (srcTexInfo->Desc()->Format != dstTexInfo->Desc()->Format)
return D3DERR_INVALIDCALL;
if (src->GetSurfaceExtent() != dst->GetSurfaceExtent())
return D3DERR_INVALIDCALL;
if (dstTexInfo->Desc()->Pool == D3DPOOL_DEFAULT)
return this->StretchRect(pRenderTarget, nullptr, pDestSurface, nullptr, D3DTEXF_NONE);