ios背景颜色影响游戏

Creator 版本:1.8.1

目标平台: ios

出现概率:必现

重现方式:

  • (void)loadView {
    // Initialize the CCEAGLView
    CCEAGLView *eaglView = [CCEAGLView viewWithFrame: [UIScreen mainScreen].bounds
    pixelFormat: (__bridge NSString *)cocos2d::GLViewImpl::_pixelFormat
    depthFormat: cocos2d::GLViewImpl::_depthFormat
    preserveBackbuffer: NO
    sharegroup: nil
    multiSampling: NO
    numberOfSamples: 0 ];

    // Enable or disable multiple touches
    [eaglView setMultipleTouchEnabled:YES];

    // Set EAGLView as view of RootViewController
    self.view = eaglView;
    self.view.backgroundColor = [UIColor whiteColor];
    }

RootViewController.mm 中设置颜色之后,游戏内颜色也会受影响!

图1是有问题的,图2是正常的,可以看出来,图一果冻底部和边缘都白了
游戏内背景图是不透明的
貌似web里设置了html元素底色也会有类似影响