aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llface.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/llface.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/llface.cpp')
-rw-r--r--linden/indra/newview/llface.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/newview/llface.cpp b/linden/indra/newview/llface.cpp
index 5b43fcd..3b5f8ab 100644
--- a/linden/indra/newview/llface.cpp
+++ b/linden/indra/newview/llface.cpp
@@ -362,10 +362,10 @@ void LLFace::renderForSelect(U32 data_mask)
362 switch (getPoolType()) 362 switch (getPoolType())
363 { 363 {
364 case LLDrawPool::POOL_ALPHA: 364 case LLDrawPool::POOL_ALPHA:
365 getTexture()->bind(); 365 gGL.getTexUnit(0)->bind(getTexture());
366 break; 366 break;
367 default: 367 default:
368 LLImageGL::unbindTexture(0); 368 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
369 break; 369 break;
370 } 370 }
371 } 371 }
@@ -390,19 +390,19 @@ void LLFace::renderForSelect(U32 data_mask)
390 { 390 {
391 glPushMatrix(); 391 glPushMatrix();
392 glMultMatrixf((float*) mDrawablep->getRegion()->mRenderMatrix.mMatrix); 392 glMultMatrixf((float*) mDrawablep->getRegion()->mRenderMatrix.mMatrix);
393 mVertexBuffer->draw(LLVertexBuffer::TRIANGLES, mIndicesCount, mIndicesIndex); 393 mVertexBuffer->draw(LLRender::TRIANGLES, mIndicesCount, mIndicesIndex);
394 glPopMatrix(); 394 glPopMatrix();
395 } 395 }
396 else 396 else
397 { 397 {
398 mVertexBuffer->draw(LLVertexBuffer::TRIANGLES, mIndicesCount, mIndicesIndex); 398 mVertexBuffer->draw(LLRender::TRIANGLES, mIndicesCount, mIndicesIndex);
399 } 399 }
400 } 400 }
401 else 401 else
402 { 402 {
403 glPushMatrix(); 403 glPushMatrix();
404 glMultMatrixf((float*)getRenderMatrix().mMatrix); 404 glMultMatrixf((float*)getRenderMatrix().mMatrix);
405 mVertexBuffer->draw(LLVertexBuffer::TRIANGLES, mIndicesCount, mIndicesIndex); 405 mVertexBuffer->draw(LLRender::TRIANGLES, mIndicesCount, mIndicesIndex);
406 glPopMatrix(); 406 glPopMatrix();
407 } 407 }
408 } 408 }
@@ -419,7 +419,7 @@ void LLFace::renderSelected(LLImageGL *imagep, const LLColor4& color)
419 419
420 if (mGeomCount > 0 && mIndicesCount > 0) 420 if (mGeomCount > 0 && mIndicesCount > 0)
421 { 421 {
422 LLViewerImage::bindTexture(imagep); 422 gGL.getTexUnit(0)->bind(imagep);
423 423
424 gGL.pushMatrix(); 424 gGL.pushMatrix();
425 if (mDrawablep->isActive()) 425 if (mDrawablep->isActive())
@@ -438,7 +438,7 @@ void LLFace::renderSelected(LLImageGL *imagep, const LLColor4& color)
438#if !LL_RELEASE_FOR_DOWNLOAD 438#if !LL_RELEASE_FOR_DOWNLOAD
439 LLGLState::checkClientArrays("", LLVertexBuffer::MAP_VERTEX | LLVertexBuffer::MAP_TEXCOORD); 439 LLGLState::checkClientArrays("", LLVertexBuffer::MAP_VERTEX | LLVertexBuffer::MAP_TEXCOORD);
440#endif 440#endif
441 mVertexBuffer->draw(LLVertexBuffer::TRIANGLES, mIndicesCount, mIndicesIndex); 441 mVertexBuffer->draw(LLRender::TRIANGLES, mIndicesCount, mIndicesIndex);
442 442
443 unsetFaceColor(); 443 unsetFaceColor();
444 gGL.popMatrix(); 444 gGL.popMatrix();
@@ -1203,7 +1203,7 @@ S32 LLFace::pushVertices(const U16* index_array) const
1203{ 1203{
1204 if (mIndicesCount) 1204 if (mIndicesCount)
1205 { 1205 {
1206 mVertexBuffer->drawRange(LLVertexBuffer::TRIANGLES, mGeomIndex, mGeomIndex+mGeomCount-1, mIndicesCount, mIndicesIndex); 1206 mVertexBuffer->drawRange(LLRender::TRIANGLES, mGeomIndex, mGeomIndex+mGeomCount-1, mIndicesCount, mIndicesIndex);
1207 gPipeline.addTrianglesDrawn(mIndicesCount/3); 1207 gPipeline.addTrianglesDrawn(mIndicesCount/3);
1208 } 1208 }
1209 1209