Skip to content

Commit 7e27c25

Browse files
newnonminggo
authored andcommitted
android emulator stensil fix (#18637)
* android emulator stensil fix * Android emulator fix changed to comment
1 parent 58077ed commit 7e27c25

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxActivity.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,9 @@ public void init() {
266266
mFrameLayout.addView(this.mGLSurfaceView);
267267

268268
// Switch to supported OpenGL (ARGB888) mode on emulator
269-
if (isAndroidEmulator())
270-
this.mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
269+
// this line dows not needed on new emulators and also it breaks stencil buffer
270+
//if (isAndroidEmulator())
271+
// this.mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
271272

272273
this.mGLSurfaceView.setCocos2dxRenderer(new Cocos2dxRenderer());
273274
this.mGLSurfaceView.setCocos2dxEditText(edittext);

0 commit comments

Comments
 (0)