diff options
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() |