diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-02-19 09:37:12 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-02-19 09:37:12 +0000 |
commit | 360b1d4d6ca420ae98f87af166d739b34f05de22 (patch) | |
tree | 84d3587b334a297178ac38c355357a92415436bb /src/resources/image.cpp | |
parent | 9df6377b13dfdda8ca6c97e2bd594c4279879388 (diff) | |
download | mana-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.cpp | 7 |
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() |