diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-15 22:03:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-16 13:50:43 +0300 |
commit | 23034a47937c109590eb60e4ee0efa32a8c9e45e (patch) | |
tree | 844c716da20752dcbb0aead649011f54d8062635 /src/render/graphics.cpp | |
parent | 4638f969d4206ba8dd857eb6d2758106cc5268df (diff) | |
download | manaplus-23034a47937c109590eb60e4ee0efa32a8c9e45e.tar.gz manaplus-23034a47937c109590eb60e4ee0efa32a8c9e45e.tar.bz2 manaplus-23034a47937c109590eb60e4ee0efa32a8c9e45e.tar.xz manaplus-23034a47937c109590eb60e4ee0efa32a8c9e45e.zip |
Remove useless includes from cpp files
Diffstat (limited to 'src/render/graphics.cpp')
-rw-r--r-- | src/render/graphics.cpp | 10 |
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 |