Bug #1158
(gles20)Fixed a bug in CCParticleSystemQuad.
| Status: | Closed | Start date: | 2012-04-13 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | - | |||
| Target version: | cocos2d-2.0-rc0a-x-2.0 |
Description
We need to check whether need to free quads and delete vbo/vao in the destructor.
CCParticleSystemQuad::~CCParticleSystemQuad()
{
if (NULL == m_pBatchNode)
{
CC_SAFE_FREE(m_pQuads);
CC_SAFE_FREE(m_pIndices);
glDeleteBuffers(2, &m_pBuffersVBO[0]);
glDeleteVertexArrays(1, &m_uVAOname);
}
}
History
Updated by James Chen about 1 year ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset commit:95b733fd9f4fb3165c16ed5069319cb05c41005f.
Updated by James Chen about 1 year ago
Applied in changeset commit:22d091e8da04a42f7b03666d0703c06c4353c5fd.
Updated by Minggo Zhang about 1 year ago
- Status changed from Resolved to Closed