mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d9] Disallow GetFrontBufferData for anything but D3DPOOL_SYSTEMMEM
Fixes #1464
This commit is contained in:
parent
74d23c22de
commit
261a242486
@ -172,6 +172,9 @@ namespace dxvk {
|
|||||||
D3D9CommonTexture* dstTexInfo = dst->GetCommonTexture();
|
D3D9CommonTexture* dstTexInfo = dst->GetCommonTexture();
|
||||||
D3D9CommonTexture* srcTexInfo = m_backBuffers[m_presentParams.BackBufferCount]->GetCommonTexture();
|
D3D9CommonTexture* srcTexInfo = m_backBuffers[m_presentParams.BackBufferCount]->GetCommonTexture();
|
||||||
|
|
||||||
|
if (unlikely(dstTexInfo->Desc()->Pool != D3DPOOL_SYSTEMMEM))
|
||||||
|
return D3DERR_INVALIDCALL;
|
||||||
|
|
||||||
Rc<DxvkBuffer> dstBuffer = dstTexInfo->GetBuffer(dst->GetSubresource());
|
Rc<DxvkBuffer> dstBuffer = dstTexInfo->GetBuffer(dst->GetSubresource());
|
||||||
Rc<DxvkImage> srcImage = srcTexInfo->GetImage();
|
Rc<DxvkImage> srcImage = srcTexInfo->GetImage();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user