mirror of https://github.com/axmolengine/axmol.git
Merge pull request #988 from dumganhar/gles20
issue #1310: fixed a bug in CCSpriteFrameCache.cpp. Disabled retina mode for tests project.
This commit is contained in:
commit
72c3c2cc0b
|
@ -229,7 +229,7 @@ void CCSpriteFrameCache::addSpriteFramesWithFile(const char *pszPlist)
|
|||
{
|
||||
CCAssert(pszPlist, "plist filename should not be NULL");
|
||||
|
||||
if (m_pLoadedFileNames->find(pszPlist) != m_pLoadedFileNames->end())
|
||||
if (m_pLoadedFileNames->find(pszPlist) == m_pLoadedFileNames->end())
|
||||
{
|
||||
const char *pszPath = CCFileUtils::sharedFileUtils()->fullPathFromRelativePath(pszPlist);
|
||||
CCDictionary *dict = CCDictionary::dictionaryWithContentsOfFileThreadSafe(pszPath);
|
||||
|
|
|
@ -23,7 +23,7 @@ bool AppDelegate::applicationDidFinishLaunching()
|
|||
pDirector->setOpenGLView(&CCEGLView::sharedOpenGLView());
|
||||
|
||||
// enable High Resource Mode(2x, such as iphone4) and maintains low resource on other devices.
|
||||
pDirector->enableRetinaDisplay(true);
|
||||
// pDirector->enableRetinaDisplay(true);
|
||||
|
||||
// turn on display FPS
|
||||
pDirector->setDisplayStats(true);
|
||||
|
|
Loading…
Reference in New Issue