Skip to content

Commit 270bcb2

Browse files
author
minggo
authored
do not set attributes in java (#17680)
if setting attribures in java code, then engine can not select GLES2/GLES3 dynamically
1 parent 7fe4196 commit 270bcb2

File tree

1 file changed

+0
-9
lines changed
  • templates/js-template-default/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript

1 file changed

+0
-9
lines changed

templates/js-template-default/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/AppActivity.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,4 @@ of this software and associated documentation files (the "Software"), to deal
2727
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
2828

2929
public class AppActivity extends Cocos2dxActivity {
30-
31-
@Override
32-
public Cocos2dxGLSurfaceView onCreateView() {
33-
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
34-
// TestCpp should create stencil buffer
35-
glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
36-
37-
return glSurfaceView;
38-
}
3930
}

0 commit comments

Comments
 (0)