summaryrefslogtreecommitdiff
path: root/src/render/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-12 00:31:20 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-12 00:32:02 +0300
commit045180991b473e03e3283cc1a440dced876cf23a (patch)
tree914e9916f33e3004336050b5d422c463529452a7 /src/render/graphics.cpp
parent789b5f52993e4074bb8fd0f883e8a852fe60c733 (diff)
downloadmanaplus-045180991b473e03e3283cc1a440dced876cf23a.tar.gz
manaplus-045180991b473e03e3283cc1a440dced876cf23a.tar.bz2
manaplus-045180991b473e03e3283cc1a440dced876cf23a.tar.xz
manaplus-045180991b473e03e3283cc1a440dced876cf23a.zip
Replace glGetString into mglGetString.
Diffstat (limited to 'src/render/graphics.cpp')
-rw-r--r--src/render/graphics.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp
index dd1dab84d..ca97e86ee 100644
--- a/src/render/graphics.cpp
+++ b/src/render/graphics.cpp
@@ -77,6 +77,9 @@
#include "resources/imagehelper.h"
#ifdef USE_OPENGL
#include "resources/openglimagehelper.h"
+#if defined(__native_client__)
+#include "render/naclgles.h"
+#endif
#endif
#ifdef USE_OPENGL
@@ -266,6 +269,10 @@ bool Graphics::setOpenGLMode()
#if defined(USE_X11)
Glx::initFunctions();
#endif
+#ifdef __native_client__
+ NaclGles::initGles();
+#endif
+
#ifdef USE_SDL2
int w1 = 0;
int h1 = 0;