summaryrefslogtreecommitdiff
path: root/src/being/compoundsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-05 20:53:25 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-05 21:18:08 +0300
commit59186802947da596240254059984307faf4d38d5 (patch)
tree154325ea2318001aee6c19a84958111d03dd26cc /src/being/compoundsprite.cpp
parent268afc3546a89cc712cd50b3a62625a2462a7bbb (diff)
downloadmanaplus-59186802947da596240254059984307faf4d38d5.tar.gz
manaplus-59186802947da596240254059984307faf4d38d5.tar.bz2
manaplus-59186802947da596240254059984307faf4d38d5.tar.xz
manaplus-59186802947da596240254059984307faf4d38d5.zip
Remove useless header include if OpenGL not enabled.
Diffstat (limited to 'src/being/compoundsprite.cpp')
-rw-r--r--src/being/compoundsprite.cpp6
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>