diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/llviewerjointmesh.cpp | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-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/llviewerjointmesh.cpp')
-rw-r--r-- | linden/indra/newview/llviewerjointmesh.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/newview/llviewerjointmesh.cpp b/linden/indra/newview/llviewerjointmesh.cpp index b590907..5c2002b 100644 --- a/linden/indra/newview/llviewerjointmesh.cpp +++ b/linden/indra/newview/llviewerjointmesh.cpp | |||
@@ -537,7 +537,7 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass) | |||
537 | 537 | ||
538 | if (mTestImageName) | 538 | if (mTestImageName) |
539 | { | 539 | { |
540 | LLImageGL::bindExternalTexture( mTestImageName, 0, GL_TEXTURE_2D ); | 540 | gGL.getTexUnit(0)->bindManual(LLTexUnit::TT_TEXTURE, mTestImageName); |
541 | 541 | ||
542 | if (mIsTransparent) | 542 | if (mIsTransparent) |
543 | { | 543 | { |
@@ -553,12 +553,12 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass) | |||
553 | { | 553 | { |
554 | if( mLayerSet->hasComposite() ) | 554 | if( mLayerSet->hasComposite() ) |
555 | { | 555 | { |
556 | mLayerSet->getComposite()->bindTexture(); | 556 | gGL.getTexUnit(0)->bind(mLayerSet->getComposite()->getTexture()); |
557 | } | 557 | } |
558 | else | 558 | else |
559 | { | 559 | { |
560 | llwarns << "Layerset without composite" << llendl; | 560 | llwarns << "Layerset without composite" << llendl; |
561 | gImageList.getImage(IMG_DEFAULT)->bind(); | 561 | gGL.getTexUnit(0)->bind(gImageList.getImage(IMG_DEFAULT)); |
562 | } | 562 | } |
563 | } | 563 | } |
564 | else | 564 | else |
@@ -566,13 +566,13 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass) | |||
566 | { | 566 | { |
567 | if (!mTexture->getClampS() || !mTexture->getClampT()) | 567 | if (!mTexture->getClampS() || !mTexture->getClampT()) |
568 | { | 568 | { |
569 | mTexture->bind(); | 569 | gGL.getTexUnit(0)->bind(mTexture.get()); |
570 | mTexture->overrideClamp (TRUE, TRUE); | 570 | mTexture->overrideClamp (TRUE, TRUE); |
571 | } | 571 | } |
572 | } | 572 | } |
573 | else | 573 | else |
574 | { | 574 | { |
575 | gImageList.getImage(IMG_DEFAULT_AVATAR)->bind(); | 575 | gGL.getTexUnit(0)->bind(gImageList.getImage(IMG_DEFAULT_AVATAR)); |
576 | } | 576 | } |
577 | 577 | ||
578 | if (gRenderForSelect) | 578 | if (gRenderForSelect) |
@@ -584,7 +584,7 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass) | |||
584 | } | 584 | } |
585 | else | 585 | else |
586 | { | 586 | { |
587 | LLImageGL::unbindTexture(0); | 587 | gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); |
588 | } | 588 | } |
589 | } | 589 | } |
590 | 590 | ||
@@ -605,14 +605,14 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass) | |||
605 | } | 605 | } |
606 | } | 606 | } |
607 | 607 | ||
608 | mFace->mVertexBuffer->drawRange(LLVertexBuffer::TRIANGLES, start, end, count, offset); | 608 | mFace->mVertexBuffer->drawRange(LLRender::TRIANGLES, start, end, count, offset); |
609 | } | 609 | } |
610 | else | 610 | else |
611 | { | 611 | { |
612 | glPushMatrix(); | 612 | glPushMatrix(); |
613 | LLMatrix4 jointToWorld = getWorldMatrix(); | 613 | LLMatrix4 jointToWorld = getWorldMatrix(); |
614 | glMultMatrixf((GLfloat*)jointToWorld.mMatrix); | 614 | glMultMatrixf((GLfloat*)jointToWorld.mMatrix); |
615 | mFace->mVertexBuffer->drawRange(LLVertexBuffer::TRIANGLES, start, end, count, offset); | 615 | mFace->mVertexBuffer->drawRange(LLRender::TRIANGLES, start, end, count, offset); |
616 | glPopMatrix(); | 616 | glPopMatrix(); |
617 | } | 617 | } |
618 | gPipeline.addTrianglesDrawn(count/3); | 618 | gPipeline.addTrianglesDrawn(count/3); |
@@ -626,7 +626,7 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass) | |||
626 | 626 | ||
627 | if (mTexture.notNull()) | 627 | if (mTexture.notNull()) |
628 | { | 628 | { |
629 | mTexture->bind(); | 629 | gGL.getTexUnit(0)->bind(mTexture.get()); |
630 | mTexture->restoreClamp(); | 630 | mTexture->restoreClamp(); |
631 | } | 631 | } |
632 | 632 | ||