FIRE-34483 Don't try to re-add extra maps on re-used rendertargets

master
Beq 2025-01-06 00:13:49 +00:00
parent 10a1ba81ce
commit 297cfeb3dc
1 changed files with 7 additions and 1 deletions

View File

@ -372,7 +372,13 @@ bool addDeferredAttachments(LLRenderTarget& target, bool for_impostor = false)
U32 orm = GL_RGBA;
U32 norm = GL_RGBA16F;
U32 emissive = GL_RGB16F;
// <FS:Beq> FIRE-34483 additional fix
if (target.getNumTextures() > 1)
{
LL_DEBUGS() << "LLPipeline::addDeferredAttachments() - target already has textures - skipping" << LL_ENDL;
return true;
}
// </FS:Beq>
static LLCachedControl<bool> has_emissive(gSavedSettings, "RenderEnableEmissiveBuffer", false);
static LLCachedControl<bool> has_hdr(gSavedSettings, "RenderHDREnabled", true);
bool hdr = has_hdr() && gGLManager.mGLVersion > 4.05f;