From 410ca0f26995c1f829b6d2d65e18739f3ab92441 Mon Sep 17 00:00:00 2001 From: Ming Date: Fri, 6 Aug 2010 06:04:49 +0000 Subject: [PATCH] issue #6: fixed a compile error --- cocos2dx/CCConfiguration.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/cocos2dx/CCConfiguration.cpp b/cocos2dx/CCConfiguration.cpp index be254524fa..c330d10993 100644 --- a/cocos2dx/CCConfiguration.cpp +++ b/cocos2dx/CCConfiguration.cpp @@ -59,21 +59,19 @@ CCConfiguration* CCConfiguration::init(void) CCLOG("cocos2d: GL supports BGRA8888 textures: %s", (m_bSupportsBGRA8888 ? "YES" : "NO")); CCLOG("cocos2d: GL supports NPOT textures: %s", (m_bSupportsNPOT ? "YES" : "NO")); CCLOG("cocos2d: GL supports discard_framebuffer: %s", (m_bSupportsDiscardFramebuffer ? "YES" : "NO")); - CCLOG("cocos2d: compiled with NPOT support: %s", -#if CC_TEXTURE_NPOT_SUPPORT - "YES" + +#ifdef CC_TEXTURE_NPOT_SUPPORT + CCLOG("cocos2d: compiled with NPOT support: %s", "YES"); #else - "NO" + CCLOG("cocos2d: compiled with NPOT support: %s", "NO"); #endif // CC_TEXTURE_NPOT_SUPPORT - ); - CCLOG("cocos2d: compiled with VBO support in TextureAtlas : %s", -#if CC_TEXTURE_ATLAS_USES_VBO - "YES" + +#ifdef CC_TEXTURE_ATLAS_USES_VBO + CCLOG("cocos2d: compiled with VBO support in TextureAtlas : %s", "YES"); #else - "NO" + CCLOG("cocos2d: compiled with VBO support in TextureAtlas : %s", "NO"); #endif // CC_TEXTURE_ATLAS_USES_VBO - ); return this;