summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpool.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-09-14 16:24:20 -0500
committerDave Parks <davep@lindenlab.com>2022-09-14 16:24:20 -0500
commit2ce39f3ad98fe855fb126dc29c82145751434421 (patch)
treeb6cb724e100c20b94ea03f624b6fb8d30c54a288 /indra/newview/lldrawpool.cpp
parent47e039ce1fb30f0e44cd6a79c0655b94794bc577 (diff)
SL-17701 Fix for shadow passes not respecting double sided and alpha parameters for PBR materials.
Diffstat (limited to 'indra/newview/lldrawpool.cpp')
-rw-r--r--indra/newview/lldrawpool.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/lldrawpool.cpp b/indra/newview/lldrawpool.cpp
index 1e548141c8..7c4c2e4b7e 100644
--- a/indra/newview/lldrawpool.cpp
+++ b/indra/newview/lldrawpool.cpp
@@ -577,6 +577,8 @@ void LLRenderPass::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture, BOOL ba
params.mGroup->rebuildMesh();
}
+ LLGLDisable cull(params.mGLTFMaterial && params.mGLTFMaterial->mDoubleSided ? GL_CULL_FACE : 0);
+
LLGLEnableFunc stencil_test(GL_STENCIL_TEST, params.mSelected, &LLGLCommonFunc::selected_stencil_test);
params.mVertexBuffer->setBufferFast(mask);