summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-02-19 09:37:12 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-02-19 09:37:12 +0000
commit360b1d4d6ca420ae98f87af166d739b34f05de22 (patch)
tree84d3587b334a297178ac38c355357a92415436bb /src/resources/image.cpp
parent9df6377b13dfdda8ca6c97e2bd594c4279879388 (diff)
downloadmana-360b1d4d6ca420ae98f87af166d739b34f05de22.tar.gz
mana-360b1d4d6ca420ae98f87af166d739b34f05de22.tar.bz2
mana-360b1d4d6ca420ae98f87af166d739b34f05de22.tar.xz
mana-360b1d4d6ca420ae98f87af166d739b34f05de22.zip
Fixing PhysFS for Dev-Cpp -> WARNING: missing OpenGL code
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index 2798fa05..3f2e9560 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -211,8 +211,13 @@ Image* Image::load(const char* buffer, const unsigned int bufferSize)
// Now free the SDL_RWops data
//SDL_FreeRW(rw);
-
+
+#ifndef USE_OPENGL
return new Image(texture);
+#else
+ return new Image(0, 0, 0, 0, 0);
+ // Warning: need implementation to use with OpenGL
+#endif
}
void Image::unload()