mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d9] Allow D3DFMT_NULL as RenderTargetFormat in CheckDepthStencilMatch
This partially fixes shadows in Timeshift.
This commit is contained in:
parent
63a4c4d457
commit
79feed9d89
@ -217,6 +217,9 @@ namespace dxvk {
|
|||||||
if (!IsDepthFormat(DepthStencilFormat))
|
if (!IsDepthFormat(DepthStencilFormat))
|
||||||
return D3DERR_NOTAVAILABLE;
|
return D3DERR_NOTAVAILABLE;
|
||||||
|
|
||||||
|
if (RenderTargetFormat == dxvk::D3D9Format::NULL_FORMAT)
|
||||||
|
return D3D_OK;
|
||||||
|
|
||||||
auto mapping = ConvertFormatUnfixed(RenderTargetFormat);
|
auto mapping = ConvertFormatUnfixed(RenderTargetFormat);
|
||||||
if (mapping.FormatColor == VK_FORMAT_UNDEFINED)
|
if (mapping.FormatColor == VK_FORMAT_UNDEFINED)
|
||||||
return D3DERR_NOTAVAILABLE;
|
return D3DERR_NOTAVAILABLE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user