summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-08 02:52:22 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-08 02:52:22 +0300
commit7760ed560001714494d7a7de470123a4cd565873 (patch)
treeeacc42d883a83191c94edb3e265c982ef8d963fc /src/graphicsvertexes.cpp
parent56cfe4d3a38a2440622cf32f613a2b57ae5b3852 (diff)
downloadmanaplus-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.cpp7
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())