summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-17 20:23:57 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-17 20:23:57 +0300
commit3293fb7b5df3c93b7b6cccf56feb4fa42fd1ea41 (patch)
treebb1a7119235d95c4af0930e20cea31f4d9074307 /src/graphicsvertexes.cpp
parent6afba95ef62b22c303336adba6d891eeffe66c49 (diff)
downloadplus-3293fb7b5df3c93b7b6cccf56feb4fa42fd1ea41.tar.gz
plus-3293fb7b5df3c93b7b6cccf56feb4fa42fd1ea41.tar.bz2
plus-3293fb7b5df3c93b7b6cccf56feb4fa42fd1ea41.tar.xz
plus-3293fb7b5df3c93b7b6cccf56feb4fa42fd1ea41.zip
Reserve some memory for image vectors.
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r--src/graphicsvertexes.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp
index b8e236310..7a3077ce3 100644
--- a/src/graphicsvertexes.cpp
+++ b/src/graphicsvertexes.cpp
@@ -33,7 +33,7 @@ const unsigned int vertexBufSize = 500;
SDLGraphicsVertexes::SDLGraphicsVertexes()
{
-
+ mList.reserve(30);
}
SDLGraphicsVertexes::~SDLGraphicsVertexes()
@@ -47,6 +47,10 @@ OpenGLGraphicsVertexes::OpenGLGraphicsVertexes() :
mIntTexArray(0),
mIntVertArray(0)
{
+ mFloatTexPool.reserve(30);
+ mIntVertPool.reserve(30);
+ mIntTexPool.reserve(30);
+ mVp.reserve(30);
}
OpenGLGraphicsVertexes::~OpenGLGraphicsVertexes()