diff options
author | Dave Parks <davep@lindenlab.com> | 2011-03-07 17:10:10 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-03-07 17:10:10 -0600 |
commit | 85fb9f5c09e20ffe8ad5f4ed45fc560507ea8305 (patch) | |
tree | c80442b329937d178bcb26c65093b47e5b1cd850 /indra/newview/lldrawpoolavatar.cpp | |
parent | 78cc3211275cad68cf4cd1a0a1d72dba9dae470d (diff) |
Fix for crash when enabling Debug GL and rendering deferred impostors.
Diffstat (limited to 'indra/newview/lldrawpoolavatar.cpp')
-rw-r--r-- | indra/newview/lldrawpoolavatar.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/lldrawpoolavatar.cpp b/indra/newview/lldrawpoolavatar.cpp index 48e561b24b..2de4c93ffd 100644 --- a/indra/newview/lldrawpoolavatar.cpp +++ b/indra/newview/lldrawpoolavatar.cpp @@ -334,7 +334,14 @@ void LLDrawPoolAvatar::renderPostDeferred(S32 pass) 9, //rigged glow }; - render(actual_pass[pass]); + pass = actual_pass[pass]; + + if (LLPipeline::sImpostorRender) + { //HACK for impostors so actual pass ends up being proper pass + pass -= 2; + } + + render(pass); } |