summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-08 01:36:38 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-08 01:36:38 +0300
commite05655679e7bd9488c31169ece3d404fd9160c8d (patch)
tree1389938ad33bced4a978ce4faee9284cf99994ff /src/graphicsmanager.cpp
parent410dd6c3d845cc0e19fd678090d95669bdeb5885 (diff)
downloadmanaverse-e05655679e7bd9488c31169ece3d404fd9160c8d.tar.gz
manaverse-e05655679e7bd9488c31169ece3d404fd9160c8d.tar.bz2
manaverse-e05655679e7bd9488c31169ece3d404fd9160c8d.tar.xz
manaverse-e05655679e7bd9488c31169ece3d404fd9160c8d.zip
copy mobileopengl into modernopengl.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index 33cbd0224..299255abe 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -45,6 +45,7 @@
#include "render/graphics.h"
#include "render/mgl.h"
#include "render/mobileopenglgraphics.h"
+#include "render/modernopenglgraphics.h"
#include "render/normalopenglgraphics.h"
#include "render/renderers.h"
#include "render/safeopenglgraphics.h"
@@ -272,7 +273,6 @@ void GraphicsManager::createRenderers()
mUseTextureSampler = false;
break;
case RENDER_NORMAL_OPENGL:
- case RENDER_MODERN_OPENGL:
#ifndef USE_SDL2
case RENDER_SDL2_DEFAULT:
#endif
@@ -291,6 +291,12 @@ void GraphicsManager::createRenderers()
mainGraphics = new SafeOpenGLGraphics;
mUseTextureSampler = false;
break;
+ case RENDER_MODERN_OPENGL:
+ imageHelper = new OpenGLImageHelper;
+ surfaceImageHelper = new SurfaceImageHelper;
+ mainGraphics = new ModernOpenGLGraphics;
+ mUseTextureSampler = true;
+ break;
#endif
case RENDER_GLES_OPENGL:
imageHelper = new OpenGLImageHelper;