From 78d66efe1a60ad599ede4e459fb04bb9cb962404 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Fri, 18 Aug 2023 00:57:15 +0300 Subject: SL-20143 Alpha thumbnails should show solid color instead of checkerboard #2 --- indra/newview/llinspecttexture.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'indra/newview/llinspecttexture.cpp') 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); -- cgit v1.2.3