Question with CCScrollLayer in cocos2d-iphone-2.1-beta2

Hi, I am having problems, as indicated in CCScrollLayer in the latest beta version of cocos2d, basically that when compiling I get: use of undeclared identifier 'CC_GL_BLEND' . Is there a way to sort this issue that anyone has found?

+6
source share
1 answer

It's safe that you can comment on this line ... Now the mix is ​​already on ... and everything works fine after this change in the beta version of cocos2D 2.1.

 // 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); 
+4
source

Source: https://habr.com/ru/post/928175/


All Articles