1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d9] Only allow ColorFill on surfaces in D3DPOOL_DEFAULT

Both nine and native nvidia d3d9 seems to do this,
this fixes a crash in spacemail by xplsv.
This commit is contained in:
Christopher Egert 2020-05-21 01:39:24 +02:00 committed by Joshie
parent 4d70d59ea4
commit 67b1ee4f9b

View File

@ -1035,6 +1035,9 @@ namespace dxvk {
D3D9CommonTexture* dstTextureInfo = dst->GetCommonTexture();
if (unlikely(dstTextureInfo->Desc()->Pool != D3DPOOL_DEFAULT))
return D3DERR_INVALIDCALL;
VkExtent3D mipExtent = dstTextureInfo->GetExtentMip(dst->GetSubresource());
VkOffset3D offset = VkOffset3D{ 0u, 0u, 0u };