SL-17417 Fix for incorrect reflection orientation on fullbright prims.

master
Dave Parks 2022-05-18 15:55:24 -05:00
parent a936322261
commit c1deab5ba7
1 changed files with 2 additions and 0 deletions

View File

@ -464,6 +464,7 @@ void LLDrawPoolBump::beginFullbrightShiny()
LLVector4 vec4(vec, gShinyOrigin.mV[3]);
shader->uniform4fv(LLViewerShaderMgr::SHINY_ORIGIN, 1, vec4.mV);
cube_map->setMatrix(1);
// Make sure that texture coord generation happens for tex unit 1, as that's the one we use for
// the cube map in the one pass shiny shaders
gGL.getTexUnit(1)->disable();
@ -524,6 +525,7 @@ void LLDrawPoolBump::endFullbrightShiny()
if( cube_map )
{
cube_map->disable();
cube_map->restoreMatrix();
shader->unbind();
}