From ea9f93442a3e073b47ead4d98076f2fb6e3dcb33 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 26 Mar 2011 18:51:06 +0200 Subject: Fix complilation without opengl. --- src/graphicsvertexes.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/graphicsvertexes.cpp') diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp index 1170d55fd..6beb41a88 100644 --- a/src/graphicsvertexes.cpp +++ b/src/graphicsvertexes.cpp @@ -29,7 +29,6 @@ int GraphicsVertexes::mUseOpenGL = 0; const unsigned int vertexBufSize = 500; #endif - SDLGraphicsVertexes::SDLGraphicsVertexes() { @@ -40,7 +39,7 @@ SDLGraphicsVertexes::~SDLGraphicsVertexes() delete_all(mList); } - +#ifdef USE_OPENGL OpenGLGraphicsVertexes::OpenGLGraphicsVertexes() : mFloatTexArray(0), mIntTexArray(0), @@ -94,6 +93,7 @@ void OpenGLGraphicsVertexes::switchVp(int n) { mVp.push_back(n); } +#endif GraphicsVertexes::GraphicsVertexes() : mX(0), mY(0), @@ -116,14 +116,18 @@ void GraphicsVertexes::init(int x, int y, int w, int h) for (int f = 0; f < 10; f ++) { sdl[mPtr].mList.clear(); +#ifdef USE_OPENGL ogl[mPtr].init(); +#endif } } +#ifdef USE_OPENGL void GraphicsVertexes::setLoadAsOpenGL(int useOpenGL) { mUseOpenGL = useOpenGL; } +#endif void GraphicsVertexes::pushSDL(SDL_Rect r1, SDL_Rect r2) { -- cgit v1.2.3-60-g2f50