Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cocos2d/CCDrawNode.m
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ -(void)dealloc

glDeleteBuffers(1, &_vbo); _vbo = 0;
glDeleteVertexArrays(1, &_vao); _vao = 0;
ccGLBindVAO(0);

[super dealloc];
}
Expand Down
3 changes: 3 additions & 0 deletions cocos2d/CCParticleSystemQuad.m
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ - (void) setTotalParticles:(NSUInteger)tp
// clean VAO
glDeleteBuffers(2, &_buffersVBO[0]);
glDeleteVertexArrays(1, &_VAOname);
ccGLBindVAO(0);

[self initVAO];
}
Expand Down Expand Up @@ -227,6 +228,7 @@ -(void) dealloc

glDeleteBuffers(2, &_buffersVBO[0]);
glDeleteVertexArrays(1, &_VAOname);
ccGLBindVAO(0);
}

[super dealloc];
Expand Down Expand Up @@ -489,6 +491,7 @@ -(void) setBatchNode:(CCParticleBatchNode *)batchNode

glDeleteBuffers(2, &_buffersVBO[0]);
glDeleteVertexArrays(1, &_VAOname);
ccGLBindVAO(0);
}
}
}
Expand Down
1 change: 1 addition & 0 deletions cocos2d/CCTextureAtlas.m
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ -(void) dealloc

#if CC_TEXTURE_ATLAS_USE_VAO
glDeleteVertexArrays(1, &_VAOname);
ccGLBindVAO(0);
#endif

[_texture release];
Expand Down