aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolalpha.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lldrawpoolalpha.cpp')
-rw-r--r--linden/indra/newview/lldrawpoolalpha.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/linden/indra/newview/lldrawpoolalpha.cpp b/linden/indra/newview/lldrawpoolalpha.cpp
index b50be95..8866c1e 100644
--- a/linden/indra/newview/lldrawpoolalpha.cpp
+++ b/linden/indra/newview/lldrawpoolalpha.cpp
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2002-2007, Linden Research, Inc. 5 * Copyright (c) 2002-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -45,6 +46,7 @@
45#include "llviewerwindow.h" 46#include "llviewerwindow.h"
46#include "pipeline.h" 47#include "pipeline.h"
47#include "llviewerregion.h" 48#include "llviewerregion.h"
49#include "llglslshader.h"
48 50
49BOOL LLDrawPoolAlpha::sShowDebugAlpha = FALSE; 51BOOL LLDrawPoolAlpha::sShowDebugAlpha = FALSE;
50 52
@@ -66,7 +68,7 @@ LLDrawPoolAlpha::~LLDrawPoolAlpha()
66 68
67void LLDrawPoolAlpha::prerender() 69void LLDrawPoolAlpha::prerender()
68{ 70{
69 mVertexShaderLevel = gPipeline.getVertexShaderLevel(LLPipeline::SHADER_OBJECT); 71 mVertexShaderLevel = LLShaderMgr::getVertexShaderLevel(LLShaderMgr::SHADER_OBJECT);
70} 72}
71 73
72void LLDrawPoolAlpha::beginRenderPass(S32 pass) 74void LLDrawPoolAlpha::beginRenderPass(S32 pass)
@@ -290,12 +292,20 @@ void LLDrawPoolAlpha::renderGroupAlpha(LLSpatialGroup* group, U32 type, U32 mask
290 { 292 {
291 gPipeline.enableLightsFullbright(LLColor4(1,1,1,1)); 293 gPipeline.enableLightsFullbright(LLColor4(1,1,1,1));
292 light_enabled = FALSE; 294 light_enabled = FALSE;
295 if (LLPipeline::sRenderGlow)
296 {
297 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
298 }
293 } 299 }
294 } 300 }
295 else if (!light_enabled) 301 else if (!light_enabled)
296 { 302 {
297 gPipeline.enableLightsDynamic(1.f); 303 gPipeline.enableLightsDynamic(1.f);
298 light_enabled = TRUE; 304 light_enabled = TRUE;
305 if (LLPipeline::sRenderGlow)
306 {
307 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_FALSE);
308 }
299 } 309 }
300 310
301 /*if (params.mParticle) 311 /*if (params.mParticle)
@@ -328,6 +338,11 @@ void LLDrawPoolAlpha::renderGroupAlpha(LLSpatialGroup* group, U32 type, U32 mask
328 if (!light_enabled) 338 if (!light_enabled)
329 { 339 {
330 gPipeline.enableLightsDynamic(1.f); 340 gPipeline.enableLightsDynamic(1.f);
341
342 if (LLPipeline::sRenderGlow)
343 {
344 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_FALSE);
345 }
331 } 346 }
332 347
333 /*glPointSize(1.f); 348 /*glPointSize(1.f);