diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-08-18 00:57:15 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-08-18 01:29:31 +0300 |
commit | 78d66efe1a60ad599ede4e459fb04bb9cb962404 (patch) | |
tree | f8e2cf432c5fb312c045c5e0bd504780d2a8be54 /indra/newview/llinspecttexture.cpp | |
parent | 74a1d2582c457aff738bf73c21e137015acfe6cb (diff) |
SL-20143 Alpha thumbnails should show solid color instead of checkerboard #2
Diffstat (limited to 'indra/newview/llinspecttexture.cpp')
-rw-r--r-- | indra/newview/llinspecttexture.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llinspecttexture.cpp b/indra/newview/llinspecttexture.cpp index 82676bced8..da4e3c0949 100644 --- a/indra/newview/llinspecttexture.cpp +++ b/indra/newview/llinspecttexture.cpp @@ -140,8 +140,11 @@ void LLTexturePreviewView::draw() { LLRect rctClient = getLocalRect(); - if (4 == m_Image->getComponents()) - gl_rect_2d_checkerboard(rctClient); + if (4 == m_Image->getComponents()) + { + const LLColor4 color(.098f, .098f, .098f); + gl_rect_2d(rctClient, color, TRUE); + } gl_draw_scaled_image(rctClient.mLeft, rctClient.mBottom, rctClient.getWidth(), rctClient.getHeight(), m_Image); bool isLoading = (!m_Image->isFullyLoaded()) && (m_Image->getDiscardLevel() > 0); |