New issue
 Projects > cpp > Issues > Bug #1158

(gles20)Fixed a bug in CCParticleSystemQuad.

Bug #1158 [Closed]
dumganhar 2012-04-13 03:39 . Updated about 2 years ago

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);
    }
}
dumganhar 2012-04-13 03:50
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:95b733fd9f4fb3165c16ed5069319cb05c41005f.

dumganhar 2012-04-13 03:50

Applied in changeset commit:22d091e8da04a42f7b03666d0703c06c4353c5fd.

zhangxm 2012-04-18 03:19
  • Status changed from Resolved to Closed
walzer 2012-05-25 07:56
  • Project changed from cocos2d-x to cpp
  • Category deleted (5)
walzer 2012-05-25 07:58
  • Target version deleted (26)
walzer 2012-05-25 09:55
  • Target version set to cocos2d-2.0-rc0a-x-2.0

Atom PDF

Status:Closed
Start date:2012-04-13
Priority:Normal
Due date:
Assignee:dumganhar
% Done:

100%

Category:-
Target version:cocos2d-2.0-rc0a-x-2.0

Copyright © 2010 - 2014 Cocos2d-x.orgClustrmaps Support Email: support@cocos.org