summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2019-05-01 12:17:44 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2019-05-01 12:17:44 +0300
commitd6a3fb910013a696b9574daddc734269f135b0de (patch)
treee652c7ab12617c3d10e9a06b9af0bd1ccf9724a3 /indra/newview
parent3961a9e80a5c46d969f34775483f0e7aa0dfb84c (diff)
parent81c39d28fe75c0d90628e2a34ec134d931873efb (diff)
Merged in lindenlab/viewer-bear
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/pipeline.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index d49c009743..bd73c234a6 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -4138,7 +4138,12 @@ void LLPipeline::renderHighlights()
glStencilFunc(GL_ALWAYS, 0, 0xFFFFFFFF);
glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE);
-
+
+ if (canUseVertexShaders())
+ {
+ gHighlightProgram.bind();
+ }
+
gGL.setColorMask(false, false);
for (std::set<HighlightItem>::iterator iter = mHighlightSet.begin(); iter != mHighlightSet.end(); ++iter)
{
@@ -10506,6 +10511,11 @@ void LLPipeline::generateHighlight(LLCamera& camera)
gGL.setColorMask(true, true);
mHighlight.clear();
+ if (canUseVertexShaders())
+ {
+ gHighlightProgram.bind();
+ }
+
gGL.getTexUnit(0)->bind(LLViewerFetchedTexture::sWhiteImagep);
for (std::set<HighlightItem>::iterator iter = mHighlightSet.begin(); iter != mHighlightSet.end(); )
{