diff options
author | Graham Madarasz <graham@lindenlab.com> | 2013-04-24 06:24:21 -0700 |
---|---|---|
committer | Graham Madarasz <graham@lindenlab.com> | 2013-04-24 06:24:21 -0700 |
commit | 79318043218a9ec6cb6e52eca936487177554903 (patch) | |
tree | 218b1f39303fa11aaaa6e39701e7335dc3680015 /indra/newview/llvoavatar.cpp | |
parent | fbbbb80752e91deff0bbaf5893210fddff53eb13 (diff) |
NORSPEC-59 NORSPEC-125 make materials and alpha shaders work on Mac laptops with nV mobile graphics cards
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index f861f49296..f5b8244509 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -4336,6 +4336,15 @@ U32 LLVOAvatar::renderTransparent(BOOL first_pass) gGL.setAlphaRejectSettings(LLRender::CF_DEFAULT); } +#if LL_DARWIN + // blatant hack to avoid driver crash on rendering mMeshLODs for eyelashes and baked hair below + // NORSPEC-59 + if (gGLManager.mIsMobileGF) + { + return num_indices; + } +#endif + if (!isSelf() || gAgent.needsRenderHead() || LLPipeline::sShadowRender) { if (LLPipeline::sImpostorRender) |