From fdbd1a4c521c537597b63cd4f2262517cab1f81a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Oct 2012 15:26:12 +0300 Subject: Improve map draw speed in fast opengl. --- src/resources/image.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/resources/image.h') diff --git a/src/resources/image.h b/src/resources/image.h index 8fafc87aa..26498e988 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -143,8 +143,6 @@ class Image : public Resource void SDLTerminateAlphaCache(); #ifdef USE_OPENGL - // OpenGL only public functions - int getTextureWidth() const { return mTexWidth; } @@ -153,6 +151,8 @@ class Image : public Resource GLuint getGLImage() const { return mGLImage; } + + GLuint mGLImage; #endif bool isHasAlphaChannel() const @@ -213,7 +213,6 @@ class Image : public Resource Image(const GLuint glimage, const int width, const int height, const int texWidth, const int texHeight); - GLuint mGLImage; int mTexWidth, mTexHeight; #endif }; -- cgit v1.2.3-60-g2f50