diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-22 14:48:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-22 14:48:04 +0300 |
commit | 60ae9c1b34a6fe98dfde22e38ec95e65d7cdcf1c (patch) | |
tree | aff7b0110b1581b8de57049b46456d1bb81803cd /src | |
parent | 32adef4efc22afa18be5b8f3858f2f8dd36bbc67 (diff) | |
download | manaverse-60ae9c1b34a6fe98dfde22e38ec95e65d7cdcf1c.tar.gz manaverse-60ae9c1b34a6fe98dfde22e38ec95e65d7cdcf1c.tar.bz2 manaverse-60ae9c1b34a6fe98dfde22e38ec95e65d7cdcf1c.tar.xz manaverse-60ae9c1b34a6fe98dfde22e38ec95e65d7cdcf1c.zip |
Fix drawing avatarlistbox in modernopengl.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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") |