diff options
author | Rye Mutt <rye@alchemyviewer.org> | 2024-07-25 04:32:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 11:32:35 +0300 |
commit | 2fa69bc13e8c629f1e3dd5eafa3dd07c83dbb4ae (patch) | |
tree | 3ab0b8877d8aa96163648754ceed698e812c87d3 /indra/newview | |
parent | 93dc0f4e5c27803ab636132c8295d127a3a9a0b0 (diff) |
Fix matrix stack underflow during avatar preview generation (#2098)
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/pipeline.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 42a6987a18..056affb68e 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -10574,10 +10574,13 @@ void LLPipeline::generateImpostor(LLVOAvatar* avatar, bool preview_avatar, bool sShadowRender = false; popRenderTypeMask(); - gGL.matrixMode(LLRender::MM_PROJECTION); - gGL.popMatrix(); - gGL.matrixMode(LLRender::MM_MODELVIEW); - gGL.popMatrix(); + if (!preview_avatar) + { + gGL.matrixMode(LLRender::MM_PROJECTION); + gGL.popMatrix(); + gGL.matrixMode(LLRender::MM_MODELVIEW); + gGL.popMatrix(); + } if (!preview_avatar && !for_profile) { |