From 60ae9c1b34a6fe98dfde22e38ec95e65d7cdcf1c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 Jun 2014 14:48:04 +0300 Subject: Fix drawing avatarlistbox in modernopengl. --- src/gui/widgets/avatarlistbox.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index 07115640b..a9ef12c99 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -139,7 +139,6 @@ void AvatarListBox::draw(Graphics *graphics) { graphics->calcTileCollection(&vertexes, icon, mImagePadding, y + mPadding); - graphics->finalize(&vertexes); } else { @@ -314,7 +313,10 @@ void AvatarListBox::draw(Graphics *graphics) } if (useCaching) + { + graphics->finalize(&vertexes); graphics->drawTileCollection(&vertexes); + } setWidth(parent->getWidth() - 10); BLOCK_END("AvatarListBox::draw") -- cgit v1.2.3-70-g09d2