summaryrefslogtreecommitdiff
path: root/src/openglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-06 00:04:33 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-06 00:04:33 +0300
commit7b155f111daf5d7ae477b16d0f0789b1113bea74 (patch)
tree2d2711ab1f9daed793171383af1a7e1fa6ff737c /src/openglgraphics.cpp
parentc3afff20d4989ab2835545715bbe67e5b5d9b353 (diff)
downloadManaVerse-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.gz
ManaVerse-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.bz2
ManaVerse-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.xz
ManaVerse-7b155f111daf5d7ae477b16d0f0789b1113bea74.zip
Fix some issues after auto checking.
Diffstat (limited to 'src/openglgraphics.cpp')
-rw-r--r--src/openglgraphics.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp
index bcadb8c67..298580e63 100644
--- a/src/openglgraphics.cpp
+++ b/src/openglgraphics.cpp
@@ -47,14 +47,18 @@ const unsigned int vertexBufSize = 500;
GLuint OpenGLGraphics::mLastImage = 0;
OpenGLGraphics::OpenGLGraphics():
- mAlpha(false), mTexture(false), mColorAlpha(false),
- mFboId(0), mTextureId(0), mRboId(0)
+ mFloatTexArray(new GLfloat[vertexBufSize * 4 + 30]),
+ mIntTexArray(new GLint[vertexBufSize * 4 + 30]),
+ mIntVertArray(new GLint[vertexBufSize * 4 + 30]),
+ mAlpha(false),
+ mTexture(false),
+ mColorAlpha(false),
+ mFboId(0),
+ mTextureId(0),
+ mRboId(0)
{
mOpenGL = 1;
mName = "fast OpenGL";
- mFloatTexArray = new GLfloat[vertexBufSize * 4 + 30];
- mIntTexArray = new GLint[vertexBufSize * 4 + 30];
- mIntVertArray = new GLint[vertexBufSize * 4 + 30];
}
OpenGLGraphics::~OpenGLGraphics()