diff --git a/src/Hooks.cpp b/src/Hooks.cpp index 178ef0b01..cf1056a61 100644 --- a/src/Hooks.cpp +++ b/src/Hooks.cpp @@ -116,7 +116,7 @@ bool Hooks::BSShader_BeginTechnique::thunk(RE::BSShader* shader, uint32_t vertex bool shaderFound = func(shader, vertexDescriptor, pixelDescriptor, skipPixelShader); - if (!shaderFound) { + if (!shaderFound && shader->shaderType.get() != RE::BSShader::Type::Effect) { auto& shaderCache = SIE::ShaderCache::Instance(); RE::BSGraphics::VertexShader* vertexShader = shaderCache.GetVertexShader(*shader, state->modifiedVertexDescriptor); RE::BSGraphics::PixelShader* pixelShader = shaderCache.GetPixelShader(*shader, state->modifiedPixelDescriptor);