[C++]TableView bug with CCRenderTexture


#1

Hello everybody, I tried to use CCRenderTexture.visit() for Layer containing TableView carried screenshot.In win32, it run properly. but In the real machine running on android, it appear bug with Cell contents disappear or only half appear.How to solve this problem?

code:
I test this bug in TestCpp~~>ExtensionsTest~~>TableViewTest, Modified TableViewTestScene.h & cpp:

TableViewTestScene.h:

//new method for MenuItem.callback
void renderThis(CCObject sender);
TableViewTestScene.cpp
//insert into line 48
CCMenuItemFont
itemRender = CCMenuItemFont::create(“Render”, this, menu_selector(TableViewTestLayer::renderThis));
itemRender~~>setPosition.x + 50, VisibleRect::leftBottom.y + 25));
menuBack~~>addChild(itemRender);
//render test
void TableViewTestLayer::renderThis( CCObject sender )
{
CCRenderTexture
renderTexture = CCRenderTexture::create(VisibleRect::getVisibleRect().size.width, VisibleRect::getVisibleRect().size.height);
renderTexture~~>beginWithClear;
this~~>visit();
renderTexture~~>end;
CCSprite* spriteResult = CCSprite::createWithTexture~~>getTexture, VisibleRect::getVisibleRect);
spriteResult~~>setFlipY;
this~~>addChild(spriteResult);
spriteResult~~>setAnchorPoint;
spriteResult~~>setPosition(CCPointZero);
}


bug1.png (52.9 KB)


bug2.png (10.3 KB)


#2

Hi,
I have the same pb. Do you have solve it?