From 7b155f111daf5d7ae477b16d0f0789b1113bea74 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Jun 2012 00:04:33 +0300 Subject: Fix some issues after auto checking. --- src/openglgraphics.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/openglgraphics.cpp') 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() -- cgit v1.2.3-60-g2f50