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:
Rivo Laks 2007-11-24 16:03:19 +00:00
parent 462f588b25
commit e0c50df7e3

View file

@ -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);