development
Révision | ab82ff4ef1d3f9061e2c77782bda574874da049b (tree) |
---|---|
l'heure | 2011-08-05 16:28:27 |
Auteur | Chia-I Wu <olvaffe@gmai...> |
Commiter | Chih-Wei Huang |
set EGL_RED_SIZE
This prevents alpha-only config from being chosen.
@@ -277,6 +277,7 @@ class GTView extends SurfaceView implements SurfaceHolder.Callback { | ||
277 | 277 | int[] version = new int[2]; |
278 | 278 | egl.eglInitialize(dpy, version); |
279 | 279 | int[] configSpec = { |
280 | + EGL10.EGL_RED_SIZE, 5, | |
280 | 281 | EGL10.EGL_DEPTH_SIZE, 16, |
281 | 282 | EGL10.EGL_NONE |
282 | 283 | }; |