Skip to content
Snippets Groups Projects
Commit 78d66efe authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

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

parent 74a1d258
No related branches found
No related tags found
No related merge requests found
...@@ -140,8 +140,11 @@ void LLTexturePreviewView::draw() ...@@ -140,8 +140,11 @@ void LLTexturePreviewView::draw()
{ {
LLRect rctClient = getLocalRect(); LLRect rctClient = getLocalRect();
if (4 == m_Image->getComponents()) if (4 == m_Image->getComponents())
gl_rect_2d_checkerboard(rctClient); {
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); gl_draw_scaled_image(rctClient.mLeft, rctClient.mBottom, rctClient.getWidth(), rctClient.getHeight(), m_Image);
bool isLoading = (!m_Image->isFullyLoaded()) && (m_Image->getDiscardLevel() > 0); bool isLoading = (!m_Image->isFullyLoaded()) && (m_Image->getDiscardLevel() > 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment