summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-08 22:48:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-08 22:48:11 +0300
commit767b8400fb086616616a298655f0bc2eaf239256 (patch)
tree9d82215887c79c596127506f50daf2ed31c23d8c /src/graphicsvertexes.cpp
parentcd0de3bd2668294ab3174d3b5f032fefc25fa0e8 (diff)
downloadmanaverse-767b8400fb086616616a298655f0bc2eaf239256.tar.gz
manaverse-767b8400fb086616616a298655f0bc2eaf239256.tar.bz2
manaverse-767b8400fb086616616a298655f0bc2eaf239256.tar.xz
manaverse-767b8400fb086616616a298655f0bc2eaf239256.zip
Fix code style in other files.
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r--src/graphicsvertexes.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp
index f8de08c8f..f15a16d9a 100644
--- a/src/graphicsvertexes.cpp
+++ b/src/graphicsvertexes.cpp
@@ -116,28 +116,28 @@ void NormalOpenGLGraphicsVertexes::init()
GLfloat *NormalOpenGLGraphicsVertexes::switchFloatTexArray()
{
- mFloatTexArray = new GLfloat[vertexBufSize * 4 + 30];
+ mFloatTexArray = new GLfloat[static_cast<size_t>(vertexBufSize * 4 + 30)];
mFloatTexPool.push_back(mFloatTexArray);
return mFloatTexArray;
}
GLint *NormalOpenGLGraphicsVertexes::switchIntVertArray()
{
- mIntVertArray = new GLint[vertexBufSize * 4 + 30];
+ mIntVertArray = new GLint[static_cast<size_t>(vertexBufSize * 4 + 30)];
mIntVertPool.push_back(mIntVertArray);
return mIntVertArray;
}
GLshort *NormalOpenGLGraphicsVertexes::switchShortVertArray()
{
- mShortVertArray = new GLshort[vertexBufSize * 4 + 30];
+ mShortVertArray = new GLshort[static_cast<size_t>(vertexBufSize * 4 + 30)];
mShortVertPool.push_back(mShortVertArray);
return mShortVertArray;
}
GLint *NormalOpenGLGraphicsVertexes::switchIntTexArray()
{
- mIntTexArray = new GLint[vertexBufSize * 4 + 30];
+ mIntTexArray = new GLint[static_cast<size_t>(vertexBufSize * 4 + 30)];
mIntTexPool.push_back(mIntTexArray);
return mIntTexArray;
}
@@ -172,7 +172,8 @@ GLfloat *NormalOpenGLGraphicsVertexes::continueFloatTexArray()
{
if (mFloatTexPool.empty())
{
- mFloatTexArray = new GLfloat[vertexBufSize * 4 + 30];
+ mFloatTexArray = new GLfloat[static_cast<size_t>(
+ vertexBufSize * 4 + 30)];
mFloatTexPool.push_back(mFloatTexArray);
}
else
@@ -186,7 +187,7 @@ GLint *NormalOpenGLGraphicsVertexes::continueIntVertArray()
{
if (mIntVertPool.empty())
{
- mIntVertArray = new GLint[vertexBufSize * 4 + 30];
+ mIntVertArray = new GLint[static_cast<size_t>(vertexBufSize * 4 + 30)];
mIntVertPool.push_back(mIntVertArray);
}
else
@@ -200,7 +201,8 @@ GLshort *NormalOpenGLGraphicsVertexes::continueShortVertArray()
{
if (mShortVertPool.empty())
{
- mShortVertArray = new GLshort[vertexBufSize * 4 + 30];
+ mShortVertArray = new GLshort[static_cast<size_t>(
+ vertexBufSize * 4 + 30)];
mShortVertPool.push_back(mShortVertArray);
}
else
@@ -214,7 +216,7 @@ GLint *NormalOpenGLGraphicsVertexes::continueIntTexArray()
{
if (mIntTexPool.empty())
{
- mIntTexArray = new GLint[vertexBufSize * 4 + 30];
+ mIntTexArray = new GLint[static_cast<size_t>(vertexBufSize * 4 + 30)];
mIntTexPool.push_back(mIntTexArray);
}
else