Fix crash when running with D3D10

This commit is contained in:
2026-04-16 15:46:24 +02:00
parent 4e72be1604
commit 1f5fcdc7c7
@@ -98,7 +98,7 @@ bool AmbientOcclusionPass::Init()
_psNonSmartBlur = GPUDevice::Instance->CreatePipelineState();
_psApply = GPUDevice::Instance->CreatePipelineState();
_psApplyHalf = GPUDevice::Instance->CreatePipelineState();
_depthBounds = GPUDevice::Instance->Limits.HasDepthBounds;
_depthBounds = GPUDevice::Instance->Limits.HasDepthBounds && GPUDevice::Instance->Limits.HasReadOnlyDepth;
// Load shader
_shader = Content::LoadAsyncInternal<Shader>(TEXT("Shaders/SSAO"));