From 75a80fdfdce4be53ce7d7b1d02400d3f79a144c0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 26 Oct 2012 13:33:20 +0300 Subject: Android compilation fixes. --- src/graphicsmanager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/graphicsmanager.cpp') diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 4c97ea327..4ffe48042 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -208,6 +208,7 @@ void GraphicsManager::initGraphics(bool noOpenGL) break; case 1: default: +#ifndef ANDROID imageHelper = new OpenGLImageHelper; sdlImageHelper = new SDLImageHelper; mainGraphics = new NormalOpenGLGraphics; @@ -219,6 +220,7 @@ void GraphicsManager::initGraphics(bool noOpenGL) mainGraphics = new SafeOpenGLGraphics; mUseTextureSampler = false; break; +#endif case 3: imageHelper = new OpenGLImageHelper; sdlImageHelper = new SDLImageHelper; @@ -247,9 +249,13 @@ Graphics *GraphicsManager::createGraphics() return new Graphics; case 1: default: +#ifndef ANDROID return new NormalOpenGLGraphics; case 2: return new SafeOpenGLGraphics; +#endif + case 3: + return new MobileOpenGLGraphics; }; #else return new Graphics; -- cgit v1.2.3-60-g2f50