summaryrefslogtreecommitdiff
path: root/src/render/mobileopengl2graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-15 19:39:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-15 19:39:12 +0300
commit1fe641c6a8e5a9186645e7b776a31337064f77d8 (patch)
treee2df69cee9be4214b4dfc38e5c40b6f56e2eb48b /src/render/mobileopengl2graphics.h
parent5865c48f81cc988a3aebe353897d68c43f05378b (diff)
downloadmv-1fe641c6a8e5a9186645e7b776a31337064f77d8.tar.gz
mv-1fe641c6a8e5a9186645e7b776a31337064f77d8.tar.bz2
mv-1fe641c6a8e5a9186645e7b776a31337064f77d8.tar.xz
mv-1fe641c6a8e5a9186645e7b776a31337064f77d8.zip
Fix different include issues.
Diffstat (limited to 'src/render/mobileopengl2graphics.h')
-rw-r--r--src/render/mobileopengl2graphics.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/mobileopengl2graphics.h b/src/render/mobileopengl2graphics.h
index d63e6a2e1..b351440fd 100644
--- a/src/render/mobileopengl2graphics.h
+++ b/src/render/mobileopengl2graphics.h
@@ -23,7 +23,7 @@
#ifndef RENDER_MOBILEOPENGL2GRAPHICS_H
#define RENDER_MOBILEOPENGL2GRAPHICS_H
-#if defined USE_OPENGL && !defined ANDROID
+#if defined(USE_OPENGL) && !defined(ANDROID)
#include "localconsts.h"
@@ -35,17 +35,17 @@
#include <GLES/gl.h>
#include <GLES/glext.h>
#include <GLES2/gl2.h>
-#else
+#else // ANDROID
#ifndef USE_SDL2
#define GL_GLEXT_PROTOTYPES 1
-#endif
+#endif // USE_SDL2
#include <SDL_opengl.h>
#if defined(__APPLE__)
#include <OpenGL/glext.h>
#elif !defined(__native_client__)
#include <GL/glext.h>
#endif // defined(__APPLE__)
-#endif
+#endif // ANDROID
class OpenGLGraphicsVertexes;
class ShaderProgram;
@@ -154,6 +154,6 @@ class MobileOpenGL2Graphics final : public Graphics
#endif
FBOInfo mFbo;
};
-#endif
+#endif // defined(USE_OPENGL) && !defined(ANDROID)
#endif // RENDER_MOBILEOPENGL2GRAPHICS_H