cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.22k stars 7.06k forks source link

CommandBufferGL::_vertexBuffer is not initialized #20452

Open Xrysnow opened 4 years ago

Xrysnow commented 4 years ago

CommandBufferGL::_vertexBuffer is not initialized as nullptr and will cause crash in CommandBufferGL::cleanResources(). https://github.com/cocos2d/cocos2d-x/blob/06367eb77260680c2dfce641361ae690b67f26a2/cocos/renderer/backend/opengl/CommandBufferGL.h#L199

Mee-gu commented 4 years ago

fixed in PR 20457