SL-20143 Alpha thumbnails should show solid color instead of checkerboard #2

master
Andrey Kleshchev 2023-08-18 00:57:15 +03:00
parent 74a1d2582c
commit 78d66efe1a
1 changed files with 5 additions and 2 deletions

View File

@ -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);