diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index d853e0e8..e137ade7 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -6630,12 +6630,15 @@ namespace dxvk { DWORD sampler = i; auto samplerInfo = RemapStateSamplerShader(sampler); - uint32_t slot = computeResourceSlotId(samplerInfo.first, DxsoBindingType::ColorImage, uint32_t(samplerInfo.second)); + uint32_t colorSlot = computeResourceSlotId(samplerInfo.first, DxsoBindingType::ColorImage, uint32_t(samplerInfo.second)); + uint32_t depthSlot = computeResourceSlotId(samplerInfo.first, DxsoBindingType::DepthImage, uint32_t(samplerInfo.second)); EmitCs([ - cSlot = slot + cColorSlot = colorSlot, + cDepthSlot = depthSlot ](DxvkContext* ctx) { - ctx->bindResourceView(cSlot, nullptr, nullptr); + ctx->bindResourceView(cColorSlot, nullptr, nullptr); + ctx->bindResourceView(cDepthSlot, nullptr, nullptr); }); }