CCRenderTexture崩溃问题分析

同样的CCRenderTexture生成代码,在模拟器上运行成功,但在真机上运行失败,很奇怪的问题。

后来发现 http://code.google.com/p/cocos2d-iphone/issues/detail?id=1187

查得:The minimum size of a render texture is 32 pixels, the minimum size for a FBO.

经过真机测试,各设备略有差异,在iphone4CCRenderTexture的宽高不得少于5像素,

ipadCCRenderTexture的宽高不得少于8像素,保险起见,统一为设置32

原文地址:https://www.cnblogs.com/pure/p/2657669.html