diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-06 00:04:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-06 00:04:33 +0300 |
commit | 7b155f111daf5d7ae477b16d0f0789b1113bea74 (patch) | |
tree | 2d2711ab1f9daed793171383af1a7e1fa6ff737c /src/openglgraphics.cpp | |
parent | c3afff20d4989ab2835545715bbe67e5b5d9b353 (diff) | |
download | plus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.gz plus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.bz2 plus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.xz plus-7b155f111daf5d7ae477b16d0f0789b1113bea74.zip |
Fix some issues after auto checking.
Diffstat (limited to 'src/openglgraphics.cpp')
-rw-r--r-- | src/openglgraphics.cpp | 14 |
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() |