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

master
Andrey Kleshchev 2023-08-14 20:07:46 +03:00
parent 03db9132db
commit 809ebe7d6a
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,8 @@ void LLThumbnailCtrl::draw()
{
if( mTexturep->getComponents() == 4 )
{
gl_rect_2d_checkerboard( draw_rect, alpha );
const LLColor4 color(.098f, .098f, .098f);
gl_rect_2d( draw_rect, color, TRUE);
}
gl_draw_scaled_image( draw_rect.mLeft, draw_rect.mBottom, draw_rect.getWidth(), draw_rect.getHeight(), mTexturep, UI_VERTEX_COLOR % alpha);