summaryrefslogtreecommitdiff
path: root/src/render/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-15 22:03:17 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-16 13:50:43 +0300
commit23034a47937c109590eb60e4ee0efa32a8c9e45e (patch)
tree844c716da20752dcbb0aead649011f54d8062635 /src/render/graphics.cpp
parent4638f969d4206ba8dd857eb6d2758106cc5268df (diff)
downloadplus-23034a47937c109590eb60e4ee0efa32a8c9e45e.tar.gz
plus-23034a47937c109590eb60e4ee0efa32a8c9e45e.tar.bz2
plus-23034a47937c109590eb60e4ee0efa32a8c9e45e.tar.xz
plus-23034a47937c109590eb60e4ee0efa32a8c9e45e.zip
Remove useless includes from cpp files
Diffstat (limited to 'src/render/graphics.cpp')
-rw-r--r--src/render/graphics.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp
index 921e8334f..17f8a6d2e 100644
--- a/src/render/graphics.cpp
+++ b/src/render/graphics.cpp
@@ -65,16 +65,20 @@
#include "render/graphics.h"
-#include "main.h"
-
+#ifdef USE_OPENGL
#include "configuration.h"
#include "graphicsmanager.h"
+#endif
#include "logger.h"
+#if defined(USE_OPENGL) && defined(USE_X11)
#include "render/mglxinit.h"
+#endif
#include "resources/imagehelper.h"
+#ifdef USE_OPENGL
#include "resources/openglimagehelper.h"
+#endif
#ifdef USE_OPENGL
#ifdef __APPLE__
@@ -261,7 +265,7 @@ bool Graphics::setOpenGLMode()
return false;
}
-#if defined(USE_OPENGL) && defined(USE_X11)
+#if defined(USE_X11)
Glx::initFunctions();
#endif
#ifdef USE_SDL2