aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/texture.h
diff options
context:
space:
mode:
authordhewg2011-03-02 23:00:48 +0100
committerdhewg2011-03-02 23:18:36 +0100
commit2d4a64d18493b142b1899a822202015339733cfa (patch)
treefb954f21d4a2023d04425b9e5b9f8ebf688d9d72 /backends/platform/android/texture.h
parentc2d4cce429baa56b5a0962a854ece6163270995f (diff)
downloadscummvm-rg350-2d4a64d18493b142b1899a822202015339733cfa.tar.gz
scummvm-rg350-2d4a64d18493b142b1899a822202015339733cfa.tar.bz2
scummvm-rg350-2d4a64d18493b142b1899a822202015339733cfa.zip
ANDROID: Properly release texture resources
When calling glDeleteTextures() we need a valid surface.
Diffstat (limited to 'backends/platform/android/texture.h')
-rw-r--r--backends/platform/android/texture.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/platform/android/texture.h b/backends/platform/android/texture.h
index 12274621a1..f1d5cad6e9 100644
--- a/backends/platform/android/texture.h
+++ b/backends/platform/android/texture.h
@@ -42,7 +42,9 @@ public:
GLESTexture();
virtual ~GLESTexture();
- virtual void reinitGL();
+ void release();
+ void reinit();
+
virtual void allocBuffer(GLuint width, GLuint height);
virtual void updateBuffer(GLuint x, GLuint y, GLuint width, GLuint height,