summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorBrad Linden <46733234+brad-linden@users.noreply.github.com>2024-10-01 16:04:44 -0700
committerGitHub <noreply@github.com>2024-10-01 16:04:44 -0700
commitb4b52e471739e5aa8ba03985b124ae5da2bdedd7 (patch)
tree1826485c827ada4c1778231116b0659f818f718f /indra
parent690f099519e155220535e07539238139b16da99f (diff)
Add early-out in LLPipeline::applyCAS() if gCASProgram failed to compile. (#2760)
fix secondlife/viewer#2756
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/pipeline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 39652ff6af..3e66ed1ab2 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -7288,7 +7288,7 @@ void LLPipeline::generateGlow(LLRenderTarget* src)
void LLPipeline::applyCAS(LLRenderTarget* src, LLRenderTarget* dst)
{
static LLCachedControl<F32> cas_sharpness(gSavedSettings, "RenderCASSharpness", 0.4f);
- if (cas_sharpness == 0.0f)
+ if (cas_sharpness == 0.0f || !gCASProgram.isComplete())
{
gPipeline.copyRenderTarget(src, dst);
return;