3dphotoshoot

diff src/android/amain.c @ 10:c71c477521ca

converting to GLES2 and C++
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 31 May 2015 00:40:26 +0300
parents 9fc7d52f578d
children c6952cc82cca
line diff
     1.1 --- a/src/android/amain.c	Mon May 25 05:27:26 2015 +0300
     1.2 +++ b/src/android/amain.c	Sun May 31 00:40:26 2015 +0300
     1.3 @@ -217,14 +217,14 @@
     1.4  {
     1.5  	static const int eglattr[] = {
     1.6  		EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
     1.7 -		EGL_RENDERABLE_TYPE, EGL_OPENGL_ES_BIT,
     1.8 +		EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
     1.9  		EGL_RED_SIZE, 5,
    1.10  		EGL_GREEN_SIZE, 5,
    1.11  		EGL_BLUE_SIZE, 5,
    1.12  		EGL_DEPTH_SIZE, 16,
    1.13  		EGL_NONE
    1.14  	};
    1.15 -	static const int ctxattr[] = { EGL_CONTEXT_CLIENT_VERSION, 1, EGL_NONE };
    1.16 +	static const int ctxattr[] = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE };
    1.17  
    1.18  	EGLConfig eglcfg;
    1.19  	int count, vis;