summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>