Closed morallo closed 2 years ago
In SSDOPass(), this buffer that is created only when SteamVR is used is always cleared. https://github.com/Prof-Butts/xwa_ddraw_d3d11/blob/132a5dd6ee601906661a6253cb6f557a042b22ed/impl11/ddraw/PrimarySurface.cpp#L2825
SSDOPass()
This causes a D3D corruption error visible when enabling the Direct3D debug layer:
D3D11 CORRUPTION: ID3D11DeviceContext::ClearRenderTargetView: First parameter is corrupt or NULL. [ MISCELLANEOUS CORRUPTION #13: CORRUPTED_PARAMETER1]
OK, this was my fault. The buffer should be always created, but I put it inside an if(g_bUseSteamVR) clause.
if(g_bUseSteamVR)
In
SSDOPass()
, this buffer that is created only when SteamVR is used is always cleared. https://github.com/Prof-Butts/xwa_ddraw_d3d11/blob/132a5dd6ee601906661a6253cb6f557a042b22ed/impl11/ddraw/PrimarySurface.cpp#L2825This causes a D3D corruption error visible when enabling the Direct3D debug layer: