diff options
Diffstat (limited to 'src')
-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 |