mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d9] Error on StretchRect when not D3DPOOL_DEFAULT
This commit is contained in:
parent
08fc5342a9
commit
92ee9c7ef1
@ -851,6 +851,10 @@ namespace dxvk {
|
||||
D3D9CommonTexture* dstTextureInfo = dst->GetCommonTexture();
|
||||
D3D9CommonTexture* srcTextureInfo = src->GetCommonTexture();
|
||||
|
||||
if (unlikely(dstTextureInfo->Desc()->Pool != D3DPOOL_DEFAULT ||
|
||||
srcTextureInfo->Desc()->Pool != D3DPOOL_DEFAULT))
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
Rc<DxvkImage> dstImage = dstTextureInfo->GetImage();
|
||||
Rc<DxvkImage> srcImage = srcTextureInfo->GetImage();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user