summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-01 21:10:13 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-01 21:10:13 +0000
commit2ae843719c2a7b2325309404a0e3cbb4aeb9c3df (patch)
tree4491254c4532f767585ed0001d5652994a7e9ae6 /src/resources
parentc2cde930ed189d70846bf86acfddf6fdd0c998f9 (diff)
downloadMana-2ae843719c2a7b2325309404a0e3cbb4aeb9c3df.tar.gz
Mana-2ae843719c2a7b2325309404a0e3cbb4aeb9c3df.tar.bz2
Mana-2ae843719c2a7b2325309404a0e3cbb4aeb9c3df.tar.xz
Mana-2ae843719c2a7b2325309404a0e3cbb4aeb9c3df.zip
Fixed several compiler warnings and a linker error when compiling without
OpenGL support.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/openglsdlimageloader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/openglsdlimageloader.cpp b/src/resources/openglsdlimageloader.cpp
index f3ddbd84..c7ddec74 100644
--- a/src/resources/openglsdlimageloader.cpp
+++ b/src/resources/openglsdlimageloader.cpp
@@ -21,6 +21,8 @@
* $Id: sdlimageloader.cpp 2121 2006-01-31 02:55:26Z der_doener $
*/
+#ifdef USE_OPENGL
+
#include "openglsdlimageloader.h"
#include <string>
@@ -32,3 +34,5 @@ SDL_Surface* OpenGLSDLImageLoader::loadSDLSurface(const std::string& filename)
ResourceManager *resman = ResourceManager::getInstance();
return resman->loadSDLSurface(filename);
}
+
+#endif