aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolalpha.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-01 17:39:58 -0600
committerJacek Antonelli2008-12-01 17:40:06 -0600
commit7abecb48babe6a6f09bf6692ba55076546cfced9 (patch)
tree8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/lldrawpoolalpha.cpp
parentSecond Life viewer sources 1.21.6 (diff)
downloadmeta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz
Second Life viewer sources 1.22.0-RC
Diffstat (limited to 'linden/indra/newview/lldrawpoolalpha.cpp')
-rw-r--r--linden/indra/newview/lldrawpoolalpha.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/lldrawpoolalpha.cpp b/linden/indra/newview/lldrawpoolalpha.cpp
index 28263b2..d997c30 100644
--- a/linden/indra/newview/lldrawpoolalpha.cpp
+++ b/linden/indra/newview/lldrawpoolalpha.cpp
@@ -129,7 +129,7 @@ void LLDrawPoolAlpha::render(S32 pass)
129 gPipeline.enableLightsFullbright(LLColor4(1,1,1,1)); 129 gPipeline.enableLightsFullbright(LLColor4(1,1,1,1));
130 glColor4f(1,0,0,1); 130 glColor4f(1,0,0,1);
131 LLViewerImage::sSmokeImagep->addTextureStats(1024.f*1024.f); 131 LLViewerImage::sSmokeImagep->addTextureStats(1024.f*1024.f);
132 LLViewerImage::sSmokeImagep->bind(); 132 gGL.getTexUnit(0)->bind(LLViewerImage::sSmokeImagep.get());
133 renderAlphaHighlight(LLVertexBuffer::MAP_VERTEX | 133 renderAlphaHighlight(LLVertexBuffer::MAP_VERTEX |
134 LLVertexBuffer::MAP_TEXCOORD); 134 LLVertexBuffer::MAP_TEXCOORD);
135 } 135 }
@@ -170,7 +170,7 @@ void LLDrawPoolAlpha::renderAlphaHighlight(U32 mask)
170 LLRenderPass::applyModelMatrix(params); 170 LLRenderPass::applyModelMatrix(params);
171 171
172 params.mVertexBuffer->setBuffer(mask); 172 params.mVertexBuffer->setBuffer(mask);
173 params.mVertexBuffer->drawRange(LLVertexBuffer::TRIANGLES, params.mStart, params.mEnd, params.mCount, params.mOffset); 173 params.mVertexBuffer->drawRange(LLRender::TRIANGLES, params.mStart, params.mEnd, params.mCount, params.mOffset);
174 gPipeline.addTrianglesDrawn(params.mCount/3); 174 gPipeline.addTrianglesDrawn(params.mCount/3);
175 } 175 }
176 } 176 }
@@ -231,7 +231,7 @@ void LLDrawPoolAlpha::renderGroupAlpha(LLSpatialGroup* group, U32 type, U32 mask
231 if (texture && params.mTexture.notNull()) 231 if (texture && params.mTexture.notNull())
232 { 232 {
233 gGL.getTexUnit(0)->activate(); 233 gGL.getTexUnit(0)->activate();
234 params.mTexture->bind(); 234 gGL.getTexUnit(0)->bind(params.mTexture.get());
235 params.mTexture->addTextureStats(params.mVSize); 235 params.mTexture->addTextureStats(params.mVSize);
236 if (params.mTextureMatrix) 236 if (params.mTextureMatrix)
237 { 237 {
@@ -288,7 +288,7 @@ void LLDrawPoolAlpha::renderGroupAlpha(LLSpatialGroup* group, U32 type, U32 mask
288 } 288 }
289 289
290 params.mVertexBuffer->setBuffer(mask); 290 params.mVertexBuffer->setBuffer(mask);
291 params.mVertexBuffer->drawRange(LLVertexBuffer::TRIANGLES, params.mStart, params.mEnd, params.mCount, params.mOffset); 291 params.mVertexBuffer->drawRange(LLRender::TRIANGLES, params.mStart, params.mEnd, params.mCount, params.mOffset);
292 gPipeline.addTrianglesDrawn(params.mCount/3); 292 gPipeline.addTrianglesDrawn(params.mCount/3);
293 293
294 if (params.mTextureMatrix && texture && params.mTexture.notNull()) 294 if (params.mTextureMatrix && texture && params.mTexture.notNull())