simple-egl: fix opaque and 16 bits mode options
authorArnaud Vrac <avrac@freebox.fr>
Mon, 25 Aug 2014 18:56:48 +0000 (20:56 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 28 Aug 2014 10:27:48 +0000 (13:27 +0300)
In those cases we were writing to the wrong EGL config attribute.

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
clients/simple-egl.c

index 69d28ea..33e711c 100644 (file)
@@ -133,6 +133,7 @@ init_egl(struct display *display, struct window *window)
                EGL_RED_SIZE, 1,
                EGL_GREEN_SIZE, 1,
                EGL_BLUE_SIZE, 1,
+               EGL_ALPHA_SIZE, 1,
                EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
                EGL_NONE
        };