diff --git a/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp b/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp index 59025621c..448b58677 100644 --- a/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp +++ b/renderdoc/driver/d3d12/d3d12_pixelhistory.cpp @@ -2986,6 +2986,7 @@ rdcarray D3D12Replay::PixelHistory(rdcarray event else history[h].postMod.depth = GetDepthValue(DXGI_FORMAT_D32_FLOAT_S8X24_UINT, fragInfo[offset].postMod); + history[h].postMod.stencil = -2; } // If it is not the first fragment for the event, set the preMod to the // postMod of the previous fragment.