Preallocate those vectors as well, just like mattr did with the ones in the shadow effect.
svn path=/trunk/KDE/kdebase/workspace/; revision=741018
This commit is contained in:
parent
462f588b25
commit
e0c50df7e3
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ void renderRoundBox( const QRect& area, float roundness, GLTexture* texture )
|
|||
|
||||
glPushMatrix();
|
||||
|
||||
QVector<float> verts, texcoords;
|
||||
QVector<float> verts(80), texcoords(80);
|
||||
// center
|
||||
addQuadVertices(verts, area.left() + roundness, area.top() + roundness, area.right() - roundness, area.bottom() - roundness);
|
||||
addQuadVertices(texcoords, 0.5, 0.5, 0.5, 0.5);
|
||||
|
|
Loading…
Reference in a new issue