diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-27 23:50:16 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-27 23:50:16 +0000 |
commit | 30063f42cc8d13ed241a52b90e63c2c68599115e (patch) | |
tree | 68868a0aa04007a0ad4a62d97556c27b48f057d7 /src/resources/image.cpp | |
parent | 0ecae988adfa88cb6b8803a9f5b7215221fceb74 (diff) | |
download | mana-30063f42cc8d13ed241a52b90e63c2c68599115e.tar.gz mana-30063f42cc8d13ed241a52b90e63c2c68599115e.tar.bz2 mana-30063f42cc8d13ed241a52b90e63c2c68599115e.tar.xz mana-30063f42cc8d13ed241a52b90e63c2c68599115e.zip |
autoTarget is now a Being*, also may have fixed related crash and added label
to show current target.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 59745894..2669059e 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -55,12 +55,9 @@ Image* Image::load(void* buffer, unsigned int bufferSize, int flags) // Load the raw file data from the buffer in an RWops structure SDL_RWops *rw = SDL_RWFromMem(buffer, bufferSize); - // Use SDL_Image to load the raw image data + // Use SDL_Image to load the raw image data and have it free the data SDL_Surface* tmpImage = IMG_Load_RW(rw, 1); - // Now free the SDL_RWops data - //SDL_FreeRW(rw); - #ifndef USE_OPENGL SDL_Surface *image; |