Fix for crash when enabling Debug GL and rendering deferred impostors.

meow-7.2.2
Dave Parks 2011-03-07 17:10:10 -06:00
parent 78cc321127
commit 85fb9f5c09
1 changed files with 8 additions and 1 deletions

View File

@ -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);
}