From 2d4a64d18493b142b1899a822202015339733cfa Mon Sep 17 00:00:00 2001 From: dhewg Date: Wed, 2 Mar 2011 23:00:48 +0100 Subject: ANDROID: Properly release texture resources When calling glDeleteTextures() we need a valid surface. --- backends/platform/android/texture.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'backends/platform/android/texture.h') 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, -- cgit v1.2.3