aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatercolorpicker.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/llfloatercolorpicker.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/llfloatercolorpicker.cpp')
-rw-r--r--linden/indra/newview/llfloatercolorpicker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llfloatercolorpicker.cpp b/linden/indra/newview/llfloatercolorpicker.cpp
index 1ffbeb3..9b2a5f6 100644
--- a/linden/indra/newview/llfloatercolorpicker.cpp
+++ b/linden/indra/newview/llfloatercolorpicker.cpp
@@ -165,7 +165,7 @@ createUI ()
165 } 165 }
166 } 166 }
167 mRGBImage = new LLImageGL ( (LLImageRaw*)raw, FALSE ); 167 mRGBImage = new LLImageGL ( (LLImageRaw*)raw, FALSE );
168 mRGBImage->bind(); 168 gGL.getTexUnit(0)->bind(mRGBImage);
169 mRGBImage->setClamp(TRUE, TRUE); 169 mRGBImage->setClamp(TRUE, TRUE);
170 170
171 // create palette 171 // create palette
@@ -543,9 +543,9 @@ void LLFloaterColorPicker::draw()
543 LLRect local_rect = getLocalRect(); 543 LLRect local_rect = getLocalRect();
544 if (gFocusMgr.childHasKeyboardFocus(this) && mSwatch->isInVisibleChain() && mContextConeOpacity > 0.001f) 544 if (gFocusMgr.childHasKeyboardFocus(this) && mSwatch->isInVisibleChain() && mContextConeOpacity > 0.001f)
545 { 545 {
546 LLGLSNoTexture no_texture; 546 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
547 LLGLEnable(GL_CULL_FACE); 547 LLGLEnable(GL_CULL_FACE);
548 gGL.begin(LLVertexBuffer::QUADS); 548 gGL.begin(LLRender::QUADS);
549 { 549 {
550 gGL.color4f(0.f, 0.f, 0.f, CONTEXT_CONE_IN_ALPHA * mContextConeOpacity); 550 gGL.color4f(0.f, 0.f, 0.f, CONTEXT_CONE_IN_ALPHA * mContextConeOpacity);
551 gGL.vertex2i(swatch_rect.mLeft, swatch_rect.mTop); 551 gGL.vertex2i(swatch_rect.mLeft, swatch_rect.mTop);