From e0c50df7e37887a4f6a8e85905510d85213e7288 Mon Sep 17 00:00:00 2001 From: Rivo Laks Date: Sat, 24 Nov 2007 16:03:19 +0000 Subject: [PATCH] Preallocate those vectors as well, just like mattr did with the ones in the shadow effect. svn path=/trunk/KDE/kdebase/workspace/; revision=741018 --- lib/kwinglutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kwinglutils.cpp b/lib/kwinglutils.cpp index a2395b1e6d..7c9aff5803 100644 --- a/lib/kwinglutils.cpp +++ b/lib/kwinglutils.cpp @@ -278,7 +278,7 @@ void renderRoundBox( const QRect& area, float roundness, GLTexture* texture ) glPushMatrix(); - QVector verts, texcoords; + QVector 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);