summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-26 13:33:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-26 13:48:26 +0300
commit75a80fdfdce4be53ce7d7b1d02400d3f79a144c0 (patch)
treeac13334dd960a3dfb65aaebbba247e6245d1e104 /src/graphicsmanager.cpp
parent9abb51fce0cca32ebe267c4797363d99520c2a0a (diff)
downloadManaVerse-75a80fdfdce4be53ce7d7b1d02400d3f79a144c0.tar.gz
ManaVerse-75a80fdfdce4be53ce7d7b1d02400d3f79a144c0.tar.bz2
ManaVerse-75a80fdfdce4be53ce7d7b1d02400d3f79a144c0.tar.xz
ManaVerse-75a80fdfdce4be53ce7d7b1d02400d3f79a144c0.zip
Android compilation fixes.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp6
1 files changed, 6 insertions, 0 deletions
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;