diff options
author | Dave Parks <davep@lindenlab.com> | 2022-05-24 18:34:52 +0000 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-05-24 18:34:52 +0000 |
commit | 9f9465f5bd2160f0245805e32644ce37f8c6cca6 (patch) | |
tree | 311d04d5aca4a4ab6d0660a6bd5af2fb7bd5e45b /indra/newview/lldrawpoolbump.cpp | |
parent | c0aa1a1202678fdde0206c9372fb071c028cfe5b (diff) | |
parent | 3365a39080744af0566adb7b6efd8e53fc6b3339 (diff) |
Merged DRTVWR-563 into SL-17219
Diffstat (limited to 'indra/newview/lldrawpoolbump.cpp')
-rw-r--r-- | indra/newview/lldrawpoolbump.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index ef38b77922..8db6a10e26 100644 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -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(); } |