From 79075b1688a4218dcee56d727dc2f6c88051c9c0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 13 Sep 2012 17:24:06 +0300 Subject: Change some pointers to references in OpenGL draw code. --- src/graphicsvertexes.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/graphicsvertexes.h') diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h index 4a4fd37f9..b5140aa52 100644 --- a/src/graphicsvertexes.h +++ b/src/graphicsvertexes.h @@ -108,12 +108,10 @@ class NormalOpenGLGraphicsVertexes GLfloat *mFloatTexArray; GLint *mIntTexArray; GLint *mIntVertArray; - - private: + std::vector mVp; std::vector mFloatTexPool; std::vector mIntVertPool; std::vector mIntTexPool; - std::vector mVp; }; #endif @@ -130,7 +128,7 @@ class ImageVertexes DoubleRects sdl; #ifdef USE_OPENGL - NormalOpenGLGraphicsVertexes *ogl; + NormalOpenGLGraphicsVertexes ogl; #endif }; @@ -166,8 +164,8 @@ class GraphicsVertexes { mPtr = num; } #ifdef USE_OPENGL - NormalOpenGLGraphicsVertexes* getOGL() - { return &ogl[mPtr]; } + NormalOpenGLGraphicsVertexes &getOGL() + { return ogl[mPtr]; } #endif int getX() const -- cgit v1.2.3-60-g2f50