diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-26 16:52:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-26 16:52:37 +0300 |
commit | e68a7408f2eba3b50b81db303fdd38ffa5d4bb8b (patch) | |
tree | 7d96f68d83b1fae0f7b7ab0b5529e9939c75d33f | |
parent | 929aeb1591e739588cd8cf629e7d7ac5a95261b1 (diff) | |
download | manaverse-e68a7408f2eba3b50b81db303fdd38ffa5d4bb8b.tar.gz manaverse-e68a7408f2eba3b50b81db303fdd38ffa5d4bb8b.tar.bz2 manaverse-e68a7408f2eba3b50b81db303fdd38ffa5d4bb8b.tar.xz manaverse-e68a7408f2eba3b50b81db303fdd38ffa5d4bb8b.zip |
fix drawing issue in software mode in SDL2.
-rw-r--r-- | src/resources/subimage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/subimage.cpp b/src/resources/subimage.cpp index d37eda91a..8a8fa2735 100644 --- a/src/resources/subimage.cpp +++ b/src/resources/subimage.cpp @@ -187,6 +187,10 @@ SubImage::~SubImage() mSDLSurface = nullptr; // Avoid possible destruction of its alpha channel mAlphaChannel = nullptr; +#ifdef USE_SDL2 + // Avoid destruction of texture + mTexture = nullptr; +#endif #ifdef USE_OPENGL mGLImage = 0; #endif |