summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@lindenlab.com>2025-03-29 11:04:12 -0400
committerGitHub <noreply@github.com>2025-03-29 11:04:12 -0400
commit6110028012181f445d5f7de2a73a5bf7adb0097c (patch)
treebd5ff7af1c8c818100b62fdf64acb8f78f74c210 /indra
parentc555d234f1bbd1d82f7764c3fd8bf7a13821bb1d (diff)
parentb9015dcb800cadb1ba21c66d53f3b2e43df3e3af (diff)
Merge pull request #3719 from williamweaver/fix/shadow-resolution-update
fix: Correctly update shadows on RenderShadowResolutionScale change
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/pipeline.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 18dd694246..6adf203ea1 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -121,7 +121,7 @@
#include "SMAAAreaTex.h"
#include "SMAASearchTex.h"
-
+#include "llerror.h"
#ifndef LL_WINDOWS
#define A_GCC 1
#pragma GCC diagnostic ignored "-Wunused-function"
@@ -1286,8 +1286,11 @@ void LLPipeline::createGLBuffers()
}
allocateScreenBuffer(resX, resY);
- mRT->width = 0;
- mRT->height = 0;
+ // Do not zero out mRT dimensions here. allocateScreenBuffer() above
+ // already sets the correct dimensions. Zeroing them caused resizeShadowTexture()
+ // to fail if called immediately after createGLBuffers (e.g., post graphics change).
+ // mRT->width = 0;
+ // mRT->height = 0;
if (!mNoiseMap)