GPUParticles: Also clean texture when object is deleted.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14962 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -95,7 +95,11 @@ ParticleSystemProxy::~ParticleSystemProxy()
|
||||
glDeleteBuffers(2, tfb_buffers);
|
||||
glDeleteBuffers(1, &initial_values_buffer);
|
||||
if (has_height_map)
|
||||
{
|
||||
glDeleteBuffers(1, &heighmapbuffer);
|
||||
glDeleteTextures(1, &heightmaptexture);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void ParticleSystemProxy::setAlphaAdditive(bool val) { m_alpha_additive = val; }
|
||||
|
||||
Reference in New Issue
Block a user