From 59186802947da596240254059984307faf4d38d5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 Jun 2016 20:53:25 +0300 Subject: Remove useless header include if OpenGL not enabled. --- src/being/compoundsprite.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/being') 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 -- cgit v1.2.3-70-g09d2