项目比较老使用cocos2.1.3版本。在使用CCClippingNode的时候发现控制台报了一个OpenGL error 0x0502,仔细定位了下代码发现是在以下代码段
CCGLProgram *program = CCShaderCache::sharedShaderCache()->programForKey(kCCShader_PositionTextureColorAlphaTest);
GLint alphaValueLocation = glGetUniformLocation(program->getProgram(), kCCUniformAlphaTestValue);
// set our alphaThreshold
program->setUniformLocationWith1f(alphaValueLocation, m_fAlphaThreshold);
发下setUniformLocationWith1f调用 glUniform1f( (GLint)location, f1);时发生了GL_INVALID_OPERATION错误,请问官方大神,这个问题是什么原因导致的?该怎么解决?