diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-05 20:53:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-05 21:18:08 +0300 |
commit | 59186802947da596240254059984307faf4d38d5 (patch) | |
tree | 154325ea2318001aee6c19a84958111d03dd26cc /src | |
parent | 268afc3546a89cc712cd50b3a62625a2462a7bbb (diff) | |
download | manaverse-59186802947da596240254059984307faf4d38d5.tar.gz manaverse-59186802947da596240254059984307faf4d38d5.tar.bz2 manaverse-59186802947da596240254059984307faf4d38d5.tar.xz manaverse-59186802947da596240254059984307faf4d38d5.zip |
Remove useless header include if OpenGL not enabled.
Diffstat (limited to 'src')
-rw-r--r-- | src/being/compoundsprite.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp index 39013767c..79d3c14ce 100644 --- a/src/being/compoundsprite.cpp +++ b/src/being/compoundsprite.cpp @@ -25,7 +25,7 @@ #ifdef USE_OPENGL #include "main.h" -#endif +#endif // USE_OPENGL #include "sdlshared.h" @@ -34,7 +34,9 @@ #include "render/surfacegraphics.h" #include "resources/image.h" +#if defined(USE_OPENGL) || !defined(USE_SDL2) #include "resources/imagehelper.h" +#endif // USE_OPENGL #include "utils/delete2.h" #include "utils/dtor.h" @@ -48,7 +50,7 @@ #include "resources/map/map.h" #include "utils/timer.h" -#endif +#endif // USE_SDL2 #include <SDL_endian.h> |