From 6615ad5dd6386bb0db648c4f1b583e0d4905fa43 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Tue, 1 Oct 2013 16:14:51 +0530 Subject: [PATCH] fixed the 4xMSAA crash on android --- android/src/com/henrikrydgard/libnative/NativeActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/src/com/henrikrydgard/libnative/NativeActivity.java b/android/src/com/henrikrydgard/libnative/NativeActivity.java index d00741044d..0afcd398b5 100644 --- a/android/src/com/henrikrydgard/libnative/NativeActivity.java +++ b/android/src/com/henrikrydgard/libnative/NativeActivity.java @@ -249,6 +249,10 @@ public class NativeActivity extends Activity { NativeApp.resized(size.x, size.y); mGLSurfaceView = new NativeGLView(this); + //setup the GLSurface and ask android for the correct + //number of bits for r, g, b, a, depth and stencil components + mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 8); + nativeRenderer = new NativeRenderer(this); mGLSurfaceView.setRenderer(nativeRenderer); setContentView(mGLSurfaceView);