cocos2dx 3.9 设置opengl参数时崩溃

void GLViewImpl::convertAttrs()
{
if(_glContextAttrs.redBits==8 && _glContextAttrs.greenBits==8 && _glContextAttrs.blueBits==8 && _glContextAttrs.alphaBits==8)
{
_pixelFormat = kEAGLColorFormatRGBA8;
} else if (_glContextAttrs.redBits==5 && _glContextAttrs.greenBits==6 && _glContextAttrs.blueBits==5 && _glContextAttrs.alphaBits==0)
{
_pixelFormat = kEAGLColorFormatRGB565;
} else
{
CCASSERT(0, “Unsupported render buffer pixel format. Using default”);
}

if(_glContextAttrs.depthBits==24 && _glContextAttrs.stencilBits==8)
{
    _depthFormat = GL_DEPTH24_STENCIL8_OES;
} else if (_glContextAttrs.depthBits==0 && _glContextAttrs.stencilBits==0)
{
    _depthFormat = 0;
} else
{
    CCASSERT(0, "Unsupported format for depth and stencil buffers. Using default");
}

}

这边 引擎在设置opengl参数时会走到“ CCASSERT(0, “Unsupported format for depth and stencil buffers. Using default”);” 然后崩溃, 不知道怎么回事, 呼叫大神帮忙看下。