mirror of https://github.com/axmolengine/axmol.git
Merge pull request #2103 from minggo/iss1686-synchronize
Fix some errors in TestCpp
This commit is contained in:
commit
e10123af19
|
@ -198,7 +198,7 @@ void CCDirector::setGLDefaultValues(void)
|
|||
setAlphaBlending(true);
|
||||
// XXX: Fix me, should enable/disable depth test according the depth format as cocos2d-iphone did
|
||||
// [self setDepthTest: view_.depthFormat];
|
||||
setDepthTest(true);
|
||||
setDepthTest(false);
|
||||
setProjection(m_eProjection);
|
||||
|
||||
// set other opengl default values
|
||||
|
|
|
@ -193,7 +193,11 @@ void TextureDemo::onEnter()
|
|||
item1->setPosition(ccp(VisibleRect::center().x - item2->getContentSize().width*2, VisibleRect::bottom().y+item2->getContentSize().height/2));
|
||||
item2->setPosition(ccp(VisibleRect::center().x, VisibleRect::bottom().y+item2->getContentSize().height/2));
|
||||
item3->setPosition(ccp(VisibleRect::center().x + item2->getContentSize().width*2, VisibleRect::bottom().y+item2->getContentSize().height/2));
|
||||
addChild(menu, 1);
|
||||
addChild(menu, 1);
|
||||
|
||||
CCLayerColor *col = CCLayerColor::create(ccc4(128,128,128,255));
|
||||
addChild(col, -10);
|
||||
|
||||
CCTextureCache::sharedTextureCache()->dumpCachedTextureInfo();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue