Hi,
Looking through the changes to CCRenderTexture in 0.99.5rc0, it appears that the first assert is incorrect/unnecessary.
-(NSData*)getUIImageAsDataFromBuffer:(int) format
{
NSAssert(format == kCCTexture2DPixelFormat_RGBA8888,@"only RGBA8888 can be saved as image");
NSAssert(pixelFormat_ == kCCTexture2DPixelFormat_RGBA8888,@"only RGBA8888 can be saved as image");
[...]
format is later used to determine file format using a local enum:
[...]
if (format == kCCImageFormatRawData)
[...]
if (format == kCCImageFormatPNG)
[...]
Am I right in thinking that the first assert format should not be compared to kCCTexture2DPixelFormat_RGBA8888 ?
-Mark