diff --git a/cocos2dx/CCDirector.cpp b/cocos2dx/CCDirector.cpp index f8c063e197..e88c53478d 100644 --- a/cocos2dx/CCDirector.cpp +++ b/cocos2dx/CCDirector.cpp @@ -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 diff --git a/samples/Cpp/TestCpp/Classes/Texture2dTest/Texture2dTest.cpp b/samples/Cpp/TestCpp/Classes/Texture2dTest/Texture2dTest.cpp index 961f65abe4..ed2e4cbfb5 100644 --- a/samples/Cpp/TestCpp/Classes/Texture2dTest/Texture2dTest.cpp +++ b/samples/Cpp/TestCpp/Classes/Texture2dTest/Texture2dTest.cpp @@ -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(); }