From 57cd5eedefa3c41e5755acf183d3755eaa0a89c6 Mon Sep 17 00:00:00 2001 From: folecr Date: Fri, 22 Mar 2013 18:26:53 -0700 Subject: [PATCH] ccx : Change minimum config to RGB565. Add depth buffer and stencil buffer requirements to EGL config. --- cocos2dx/platform/android/jni/nativeactivity.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cocos2dx/platform/android/jni/nativeactivity.c b/cocos2dx/platform/android/jni/nativeactivity.c index 01fe8bfa38..af5b43f4d1 100644 --- a/cocos2dx/platform/android/jni/nativeactivity.c +++ b/cocos2dx/platform/android/jni/nativeactivity.c @@ -52,9 +52,11 @@ static int engine_init_display(struct engine* engine) { */ const EGLint attribs[] = { EGL_SURFACE_TYPE, EGL_WINDOW_BIT, - EGL_BLUE_SIZE, 8, - EGL_GREEN_SIZE, 8, - EGL_RED_SIZE, 8, + EGL_BLUE_SIZE, 5, + EGL_GREEN_SIZE, 6, + EGL_RED_SIZE, 5, + EGL_DEPTH_SIZE, 16, + EGL_STENCIL_SIZE, 8, EGL_NONE }; EGLint w, h, dummy, format;