asinesio/cocos2d-PRKit — Issue #5: Problem with Cocos2d 2.0
Author: Takuan31
Created: 2011-11-07 12:59:47+00:00
State: open

I'm using PRKit with the new version of Cocos2d, and I'm getting EXC_BAD_ACCESS in PRFilledPolygon.m on the following line:
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL); (in the draw method)

The texture is loaded correctly, and it works fine with the old version of Cocos2d.

So I assume the OpenGl version is the real problem, as the big difference with cocos2d 2.0 is that is uses OpenGLES 2.0.

But being a complete noob with OpenGL, I can't manage to make it work...

Any idea on how I could do that ?