[Scummvm-cvs-logs] scummvm master -> 19c407ca69ea2b98623203948bb62d84729645b3
dhewg
dhewg at wiibrew.org
Thu Mar 24 22:05:17 CET 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
19c407ca69 ANDROID: Fix texture double release
Commit: 19c407ca69ea2b98623203948bb62d84729645b3
https://github.com/scummvm/scummvm/commit/19c407ca69ea2b98623203948bb62d84729645b3
Author: dhewg (dhewg at wiibrew.org)
Date: 2011-03-24T14:04:03-07:00
Commit Message:
ANDROID: Fix texture double release
Changed paths:
backends/platform/android/texture.cpp
diff --git a/backends/platform/android/texture.cpp b/backends/platform/android/texture.cpp
index b96d6bf..407ba04 100644
--- a/backends/platform/android/texture.cpp
+++ b/backends/platform/android/texture.cpp
@@ -102,10 +102,12 @@ GLESBaseTexture::~GLESBaseTexture() {
}
void GLESBaseTexture::release() {
- LOGD("Destroying texture %u", _texture_name);
+ if (_texture_name) {
+ LOGD("Destroying texture %u", _texture_name);
- GLCALL(glDeleteTextures(1, &_texture_name));
- _texture_name = 0;
+ GLCALL(glDeleteTextures(1, &_texture_name));
+ _texture_name = 0;
+ }
}
void GLESBaseTexture::reinit() {
More information about the Scummvm-git-logs
mailing list