I’m having a problem when trying to build for iOS. It compiles/build without errors, but when it’s trying to run the game throws this assert error:
Assert failed: Unsupported format for depth and stencil buffers. Using default
Assertion failed: (0), function convertAttrs, file /Users/spacolino/development/games/boringame/cocos2d/cocos/platform/ios/CCGLViewImpl-ios.mm, line 107.
In source it looks like this:
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");
}
}
Do I have to set some depth format or stencil buffer? Or?
I’ve tried it on simulator and iphone 5s. It gives the same error.
If you need any additional info please tell me.
Thank you!