mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-13 19:29:14 +01:00
[d3d9] Fix for missing restriction check in UpdateSurface.
The spec of IDirect3DDevice9::UpdateSurface contains the following restriction: - Neither surface can be created with multisampling. The only valid flag for both surfaces is D3DMULTISAMPLE_NONE. This commit adds this check and returns D3DERR_INVALIDCALL when source or destination surfaces are multisampled.
This commit is contained in:
parent
2890f690f6
commit
19b76825d0
@ -746,6 +746,12 @@ namespace dxvk {
|
||||
if (unlikely(srcTextureInfo->Desc()->Format != dstTextureInfo->Desc()->Format))
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
if (unlikely(srcTextureInfo->Desc()->MultiSample != D3DMULTISAMPLE_NONE))
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
if (unlikely(dstTextureInfo->Desc()->MultiSample != D3DMULTISAMPLE_NONE))
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
const DxvkFormatInfo* formatInfo = lookupFormatInfo(dstTextureInfo->GetFormatMapping().FormatColor);
|
||||
|
||||
VkOffset3D srcOffset = { 0u, 0u, 0u };
|
||||
|
Loading…
x
Reference in New Issue
Block a user