Cocos2d在iOS9模拟器上崩溃

时间:2015-10-27 01:31:21

标签: cocos2d-iphone ios9

2015-10-26 21:30:19.093 QP[4494:55623]   39: 
OpenGL error GL_INVALID_VALUE detected at -[CCGraphicsBufferGLUnsynchronized setup] 121
2015-10-26 21:30:19.096 QP[4494:55623] *** Assertion failure in -[CCRenderStateGL initWithBlendMode:shader:shaderUniforms:copyUniforms:], /Users/quantum/code/fuck/quantumpilot/qp/Source/libs/cocos2d-iphone/cocos2d/CCRendererBasicTypes.m:313
2015-10-26 21:30:19.139 QP[4494:55623] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'CCRenderState: Shader is nil'

为什么会这样?在我的8.4.1设备上正常工作。将在9.1设备上进行测试。

修改

来自http://forum.cocos2d-objc.org/t/xcode-7-ios9-beta/17346/20

added to static NSString *CCShaderHeader in CCShader.m @"#ifdef GL_ES\n" @"#ifdef GL_OES_standard_derivatives\n" @"#extension GL_OES_standard_derivatives : enable\n" @"#endif\n" @"#endif\n" removed from CCDrawNode.m @"#ifdef GL_ES\n" @"#extension GL_OES_standard_derivatives : enable\n" @"#endif\n" @"\n"

修复它。奥

0 个答案:

没有答案