--- deliantra/Deliantra-Client/Client.xs 2007/04/20 16:56:08 1.183 +++ deliantra/Deliantra-Client/Client.xs 2007/04/20 17:25:41 1.184 @@ -2389,6 +2389,8 @@ void glDeleteTexture (int name) CODE: { + /* make a half-assed attempt at returning the memory used by the texture */ + /* textures are frequently being reused by cfplus anyway */ glBindTexture (GL_TEXTURE_2D, name); glTexImage2D (GL_TEXTURE_2D, 0, GL_ALPHA, 0, 0, 0, GL_ALPHA, GL_UNSIGNED_BYTE, 0); av_push (texture_av, (SV *)name);