summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-17 02:24:54 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-17 14:55:08 +0300
commit5a322df4da3102ae0c8d3bc3071386dc5f21e580 (patch)
tree4ca0cca3328baf7484074ad6e1cf9c5a9f9e3db0 /src/graphicsvertexes.h
parente6e36b25a696212f0262e3e5ef520543b1b3a58b (diff)
downloadManaVerse-5a322df4da3102ae0c8d3bc3071386dc5f21e580.tar.gz
ManaVerse-5a322df4da3102ae0c8d3bc3071386dc5f21e580.tar.bz2
ManaVerse-5a322df4da3102ae0c8d3bc3071386dc5f21e580.tar.xz
ManaVerse-5a322df4da3102ae0c8d3bc3071386dc5f21e580.zip
Add OpenGL support for Android builds (partially).
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r--src/graphicsvertexes.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h
index 69d391864..789e9fd34 100644
--- a/src/graphicsvertexes.h
+++ b/src/graphicsvertexes.h
@@ -27,11 +27,15 @@
#include "localconsts.h"
#ifdef USE_OPENGL
-//#define NO_SDL_GLEXT
+
+#ifdef ANDROID
+#include <GLES/gl.h>
+#else
#define GL_GLEXT_PROTOTYPES 1
+#include <SDL/SDL_opengl.h>
+#endif
#include <SDL/SDL.h>
-#include <SDL/SDL_opengl.h>
#include "safeopenglgraphics.h"
#include "normalopenglgraphics.h"