Merge pull request #3719 from williamweaver/fix/shadow-resolution-update

fix: Correctly update shadows on RenderShadowResolutionScale change
master
Jonathan "Geenz" Goodman 2025-03-29 11:04:12 -04:00 committed by GitHub
commit 6110028012
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 3 deletions

View File

@ -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)