diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-08 02:52:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-08 02:52:22 +0300 |
commit | 7760ed560001714494d7a7de470123a4cd565873 (patch) | |
tree | eacc42d883a83191c94edb3e265c982ef8d963fc /src/graphicsvertexes.cpp | |
parent | 56cfe4d3a38a2440622cf32f613a2b57ae5b3852 (diff) | |
download | manaplus-7760ed560001714494d7a7de470123a4cd565873.tar.gz manaplus-7760ed560001714494d7a7de470123a4cd565873.tar.bz2 manaplus-7760ed560001714494d7a7de470123a4cd565873.tar.xz manaplus-7760ed560001714494d7a7de470123a4cd565873.zip |
improve map draw speed.
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r-- | src/graphicsvertexes.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp index 16fe7cec9..407d5ef0c 100644 --- a/src/graphicsvertexes.cpp +++ b/src/graphicsvertexes.cpp @@ -134,6 +134,13 @@ int NormalOpenGLGraphicsVertexes::continueVp() } } +void NormalOpenGLGraphicsVertexes::updateVp(int n) +{ + if (!mVp.empty()) + mVp.pop_back(); + mVp.push_back(n); +} + GLfloat *NormalOpenGLGraphicsVertexes::continueFloatTexArray() { if (mFloatTexPool.empty()) |