1
0
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:
Christopher Egert 2020-05-18 22:38:24 +02:00 committed by Joshie
parent 63a4c4d457
commit 79feed9d89

View File

@ -217,6 +217,9 @@ namespace dxvk {
if (!IsDepthFormat(DepthStencilFormat))
return D3DERR_NOTAVAILABLE;
if (RenderTargetFormat == dxvk::D3D9Format::NULL_FORMAT)
return D3D_OK;
auto mapping = ConvertFormatUnfixed(RenderTargetFormat);
if (mapping.FormatColor == VK_FORMAT_UNDEFINED)
return D3DERR_NOTAVAILABLE;