summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-04 03:21:57 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-04 03:21:57 +0300
commit485ba81a87c50c23d1f97318e42f4937af1fda1f (patch)
treeb1b85f22e9bf2ea10e5fcddf3000506d207015fe /src/render
parent554210becbfc9de611699889a3fd0f53525a1b83 (diff)
downloadmanaverse-485ba81a87c50c23d1f97318e42f4937af1fda1f.tar.gz
manaverse-485ba81a87c50c23d1f97318e42f4937af1fda1f.tar.bz2
manaverse-485ba81a87c50c23d1f97318e42f4937af1fda1f.tar.xz
manaverse-485ba81a87c50c23d1f97318e42f4937af1fda1f.zip
Remove some useless includes if using SDL2.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/rendererslistsdl2.h2
-rw-r--r--src/render/surfacegraphics.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/render/rendererslistsdl2.h b/src/render/rendererslistsdl2.h
index e98922f70..3944f4a56 100644
--- a/src/render/rendererslistsdl2.h
+++ b/src/render/rendererslistsdl2.h
@@ -25,6 +25,8 @@
#include "utils/gettext.h"
+#include "render/renderers.h"
+
#ifdef USE_OPENGL
#ifdef ANDROID
// defined OPENGL ANDROID
diff --git a/src/render/surfacegraphics.cpp b/src/render/surfacegraphics.cpp
index d3083dd5c..e6fc33298 100644
--- a/src/render/surfacegraphics.cpp
+++ b/src/render/surfacegraphics.cpp
@@ -23,7 +23,10 @@
#include "render/surfacegraphics.h"
#include "resources/image.h"
+
+#ifndef USE_SDL2
#include "resources/surfaceimagehelper.h"
+#endif // USE_SDL2
#include "debug.h"