Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

issue with CCScrollLayer in cocos2d-iphone-2.1-beta2

Hi there I'm having problems as stated with CCScrollLayer in the lateste cocos2d beta, mainly that on compiling I get: use of undeclared identifier 'CC_GL_BLEND'. Is there any way to sort this problem that anyone has found yet?

like image 809
simonthumper Avatar asked Oct 20 '12 12:10

simonthumper


1 Answers

Safely you can comment that line..anyway blending is already enabled...and everything works fine after this change in cocos2D 2.1 beta.

// Set GL Values
#if COCOS2D_VERSION >= 0x00020000
      //  ccGLEnable(CC_GL_BLEND); //Guru
        ccPointSize( 6.0 * CC_CONTENT_SCALE_FACTOR() );
#define DRAW_4B_FUNC ccDrawColor4B

#else
        glEnable(GL_POINT_SMOOTH);
        GLboolean blendWasEnabled = glIsEnabled( GL_BLEND );
        glEnable(GL_BLEND);
like image 92
Guru Avatar answered Sep 17 '22 18:09

Guru