aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolalpha.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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())