Projects > cpp > Issues > Bug #4776

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

PageView get green background on Android

Bug #4776 [Closed]
owen 2014-04-13 03:04

we should add the following code to enable stencil buffer:

import org.cocos2dx.lib.Cocos2dxActivity;
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;

public class AppActivity extends Cocos2dxActivity {
    public Cocos2dxGLSurfaceView onCreateView() {
        Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
        glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
        return glSurfaceView;
    }
}

owen 2014-04-13 03:06
  • Status changed from New to Closed

Atom PDF

Status:Closed
Start date:2014-04-13
Priority:Normal
Due date:
Assignee:owen
% Done:

0%

Category:all
Target version:3.0-rc2