Projects > cpp > Issues > Bug #4629

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Renderer->GroupCommand bug

Bug #4629 [Closed]
dabingnn 2014-04-01 06:19 . Updated about 9 years ago

Try this code, you will reproduce the bug

 groupCommand->init(_globalZorder);
 renderer->addCommand(&groupCommand);
 renderer->pushGroup(_groupCommand.getRenderQueueID());
 //the following code is to add a quadCommand into the renderer
 sprite->draw(renderer, _modelViewTransform, dirty);

 renderer->popGroup();

in the final renderer, the sprite is not visible. and debug the code, we find a bug in the renderer, that if the renderQueue has only one command, it's execute will be ignored.

zhangxm 2014-04-04 07:03
  • Assignee set to zhangbin@cocos2d-x.org
dabingnn 2014-04-04 07:06
  • Assignee changed from zhangbin@cocos2d-x.org to dabingnn
dabingnn 2014-04-09 17:18
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:86c279b8a917ed7e40e317c4cfe8083373f2c332.

Atom PDF

Status:Closed
Start date:2014-04-01
Priority:High
Due date:
Assignee:dabingnn
% Done:

100%

Category:all
Target version:3.0-rc2