aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolavatar.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/lldrawpoolavatar.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/lldrawpoolavatar.cpp')
-rw-r--r--linden/indra/newview/lldrawpoolavatar.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/lldrawpoolavatar.cpp b/linden/indra/newview/lldrawpoolavatar.cpp
index 97ff072..a5231dd 100644
--- a/linden/indra/newview/lldrawpoolavatar.cpp
+++ b/linden/indra/newview/lldrawpoolavatar.cpp
@@ -396,7 +396,7 @@ void LLDrawPoolAvatar::renderAvatars(LLVOAvatar* single_avatar, S32 pass)
396 { 396 {
397 397
398 /* // debug code to draw a cube in place of avatar 398 /* // debug code to draw a cube in place of avatar
399 LLGLSNoTexture gls_no_texture; 399 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
400 LLVector3 pos = avatarp->getPositionAgent(); 400 LLVector3 pos = avatarp->getPositionAgent();
401 401
402 gGL.color4f(1.0f, 0.0f, 0.0f, 0.8f); 402 gGL.color4f(1.0f, 0.0f, 0.0f, 0.8f);
@@ -495,17 +495,17 @@ void LLDrawPoolAvatar::renderAvatars(LLVOAvatar* single_avatar, S32 pass)
495 { 495 {
496 if (LLVOAvatar::sShowCollisionVolumes) 496 if (LLVOAvatar::sShowCollisionVolumes)
497 { 497 {
498 LLGLSNoTexture no_texture; 498 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
499 avatarp->renderCollisionVolumes(); 499 avatarp->renderCollisionVolumes();
500 } 500 }
501 501
502 if (avatarp->mIsSelf && LLAgent::sDebugDisplayTarget) 502 if (avatarp->mIsSelf && LLAgent::sDebugDisplayTarget)
503 { 503 {
504 LLGLSNoTexture gls_no_texture; 504 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
505 LLVector3 pos = avatarp->getPositionAgent(); 505 LLVector3 pos = avatarp->getPositionAgent();
506 506
507 gGL.color4f(1.0f, 0.0f, 0.0f, 0.8f); 507 gGL.color4f(1.0f, 0.0f, 0.0f, 0.8f);
508 gGL.begin(LLVertexBuffer::LINES); 508 gGL.begin(LLRender::LINES);
509 { 509 {
510 gGL.vertex3fv((pos - LLVector3(0.2f, 0.f, 0.f)).mV); 510 gGL.vertex3fv((pos - LLVector3(0.2f, 0.f, 0.f)).mV);
511 gGL.vertex3fv((pos + LLVector3(0.2f, 0.f, 0.f)).mV); 511 gGL.vertex3fv((pos + LLVector3(0.2f, 0.f, 0.f)).mV);
@@ -517,7 +517,7 @@ void LLDrawPoolAvatar::renderAvatars(LLVOAvatar* single_avatar, S32 pass)
517 517
518 pos = avatarp->mDrawable->getPositionAgent(); 518 pos = avatarp->mDrawable->getPositionAgent();
519 gGL.color4f(1.0f, 0.0f, 0.0f, 0.8f); 519 gGL.color4f(1.0f, 0.0f, 0.0f, 0.8f);
520 gGL.begin(LLVertexBuffer::LINES); 520 gGL.begin(LLRender::LINES);
521 { 521 {
522 gGL.vertex3fv((pos - LLVector3(0.2f, 0.f, 0.f)).mV); 522 gGL.vertex3fv((pos - LLVector3(0.2f, 0.f, 0.f)).mV);
523 gGL.vertex3fv((pos + LLVector3(0.2f, 0.f, 0.f)).mV); 523 gGL.vertex3fv((pos + LLVector3(0.2f, 0.f, 0.f)).mV);
@@ -529,7 +529,7 @@ void LLDrawPoolAvatar::renderAvatars(LLVOAvatar* single_avatar, S32 pass)
529 529
530 pos = avatarp->mRoot.getWorldPosition(); 530 pos = avatarp->mRoot.getWorldPosition();
531 gGL.color4f(1.0f, 1.0f, 1.0f, 0.8f); 531 gGL.color4f(1.0f, 1.0f, 1.0f, 0.8f);
532 gGL.begin(LLVertexBuffer::LINES); 532 gGL.begin(LLRender::LINES);
533 { 533 {
534 gGL.vertex3fv((pos - LLVector3(0.2f, 0.f, 0.f)).mV); 534 gGL.vertex3fv((pos - LLVector3(0.2f, 0.f, 0.f)).mV);
535 gGL.vertex3fv((pos + LLVector3(0.2f, 0.f, 0.f)).mV); 535 gGL.vertex3fv((pos + LLVector3(0.2f, 0.f, 0.f)).mV);
@@ -541,7 +541,7 @@ void LLDrawPoolAvatar::renderAvatars(LLVOAvatar* single_avatar, S32 pass)
541 541
542 pos = avatarp->mPelvisp->getWorldPosition(); 542 pos = avatarp->mPelvisp->getWorldPosition();
543 gGL.color4f(0.0f, 0.0f, 1.0f, 0.8f); 543 gGL.color4f(0.0f, 0.0f, 1.0f, 0.8f);
544 gGL.begin(LLVertexBuffer::LINES); 544 gGL.begin(LLRender::LINES);
545 { 545 {
546 gGL.vertex3fv((pos - LLVector3(0.2f, 0.f, 0.f)).mV); 546 gGL.vertex3fv((pos - LLVector3(0.2f, 0.f, 0.f)).mV);
547 gGL.vertex3fv((pos + LLVector3(0.2f, 0.f, 0.f)).mV); 547 gGL.vertex3fv((pos + LLVector3(0.2f, 0.f, 0.f)).mV);