diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-06-16 15:41:47 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-06-16 15:41:47 +0000 |
commit | 029d6efeee63ed3e0964c6759d29e885d0877135 (patch) | |
tree | d4270d3483eadb9d068baf8c25dbf3f16a4873b3 /src/resources | |
parent | a8a1e84128c7f729220391546c981552a7466f1f (diff) | |
download | mana-029d6efeee63ed3e0964c6759d29e885d0877135.tar.gz mana-029d6efeee63ed3e0964c6759d29e885d0877135.tar.bz2 mana-029d6efeee63ed3e0964c6759d29e885d0877135.tar.xz mana-029d6efeee63ed3e0964c6759d29e885d0877135.zip |
Set GL texture index to zero when an image uses the SDL backend.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/image.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index d7d4e64b..993b0a2b 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -32,7 +32,11 @@ bool Image::mUseOpenGL = false; #endif Image::Image(const std::string &idPath, SDL_Surface *image): - Resource(idPath), mImage(image), + Resource(idPath), +#ifdef USE_OPENGL + mGLImage(0), +#endif + mImage(image), mAlpha(1.0f) { mBounds.x = 0; |