summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-30 18:02:24 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-30 18:02:24 +0300
commit34ffeac394298fd99557f3cbbc7628413466dd4f (patch)
treeba492e0ebe0c4df5c6c2db5a4bd36eb12cf50a76
parente8ee55ea0794dd985e73b26d3e889f6eda16bf3d (diff)
downloadplus-34ffeac394298fd99557f3cbbc7628413466dd4f.tar.gz
plus-34ffeac394298fd99557f3cbbc7628413466dd4f.tar.bz2
plus-34ffeac394298fd99557f3cbbc7628413466dd4f.tar.xz
plus-34ffeac394298fd99557f3cbbc7628413466dd4f.zip
Dont include GL/glx.h if x11 usage disabled.
-rw-r--r--src/graphicsmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index 2c494a85a..f3442bcfc 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -35,7 +35,9 @@
#include <GL/Regal.h>
#include "render/opengl/naclglfunctions.h"
#else // ANDROID
+#ifdef USE_X11
#include <GL/glx.h>
+#endif // USE_X11
#endif // ANDROID
#endif // WIN32
#endif // USE_OPENGL