mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[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:
parent
e9a0fec5b3
commit
ab3593185f
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user