cocos2d-x
cocos2d-x copied to clipboard
bugfix: memory leak
i think CommandBufferGL::setVertexBuffer and CommandBufferGL::setIndexBuffer should do same things.
- check weather new value is different from old value.
- release old value, retain new value.
there's memory leak in CommandBufferGL::setVertexBuffer if not release old value
checks fail due to: /usr/bin/ld: cannot find -lXxf86vm. it's not my fault...