diff --git a/src/Hooks.cpp b/src/Hooks.cpp index 87b1d2f176..8ee3cf8415 100644 --- a/src/Hooks.cpp +++ b/src/Hooks.cpp @@ -957,12 +957,12 @@ namespace Hooks } else if (CurrentlyDispatchedComputeShader->name == std::string_view("ISVolumetricLightingRaymarchCS")) { isShader = globals::features::volumetricLighting->GetOrCreateRaymarchCS(CurrentlyDispatchedComputeShader); } - } else if (CurrentlyDispatchedComputeShader->name == std::string_view("ISVolumetricLightingBlurHCS")) { + } else if (vl->loaded && CurrentlyDispatchedComputeShader->name == std::string_view("ISVolumetricLightingBlurHCS")) { techniqueId = 0; isShader = vl->GetOrCreateBlurHCS(CurrentlyDispatchedComputeShader); vl->SetDimensionsCB(); vl->SetGroupCountsHCS(threadGroupCountX); - } else if (CurrentlyDispatchedComputeShader->name == std::string_view("ISVolumetricLightingBlurVCS")) { + } else if (vl->loaded && CurrentlyDispatchedComputeShader->name == std::string_view("ISVolumetricLightingBlurVCS")) { techniqueId = 0; isShader = vl->GetOrCreateBlurVCS(CurrentlyDispatchedComputeShader); vl->SetDimensionsCB();