=== modified file 'src/screen-sdl-glesv2.cpp'
@@ -44,6 +44,26 @@
return;
}
+#ifdef _DEBUG
+ {
+ int buf, red, green, blue, alpha, depth;
+ SDL_GLES_GetAttribute(SDL_GLES_BUFFER_SIZE, &buf);
+ SDL_GLES_GetAttribute(SDL_GLES_RED_SIZE, &red);
+ SDL_GLES_GetAttribute(SDL_GLES_GREEN_SIZE, &green);
+ SDL_GLES_GetAttribute(SDL_GLES_BLUE_SIZE, &blue);
+ SDL_GLES_GetAttribute(SDL_GLES_ALPHA_SIZE, &alpha);
+ SDL_GLES_GetAttribute(SDL_GLES_DEPTH_SIZE, &depth);
+ printf("EGL chosen config:\n"
+ " Buffer: %d bits\n"
+ " Red: %d bits\n"
+ " Green: %d bits\n"
+ " Blue: %d bits\n"
+ " Alpha: %d bits\n"
+ " Depth: %d bits\n",
+ buf, red, green, blue, alpha, depth);
+ }
+#endif
+
glClearColor(0.0f, 0.0f, 0.0f, 0.5f);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
=== modified file 'src/sdlgles/attribs.inc'
@@ -1,13 +1,13 @@
/* List of EGL attributes we care about */
-A(0, EGL_BUFFER_SIZE, 0)
-A(1, EGL_RED_SIZE, 0)
-A(2, EGL_GREEN_SIZE, 0)
-A(3, EGL_BLUE_SIZE, 0)
+A(0, EGL_BUFFER_SIZE, 1)
+A(1, EGL_RED_SIZE, 1)
+A(2, EGL_GREEN_SIZE, 1)
+A(3, EGL_BLUE_SIZE, 1)
A(4, EGL_LUMINANCE_SIZE, 0)
A(5, EGL_ALPHA_SIZE, 0)
A(6, EGL_CONFIG_CAVEAT, EGL_DONT_CARE)
A(7, EGL_CONFIG_ID, EGL_DONT_CARE)
-A(8, EGL_DEPTH_SIZE, 0)
+A(8, EGL_DEPTH_SIZE, 1)
A(9, EGL_LEVEL, 0)
A(10, EGL_NATIVE_RENDERABLE, EGL_DONT_CARE)
A(11, EGL_NATIVE_VISUAL_TYPE, EGL_DONT_CARE)