clients/simple-egl: Allow translucent 16-bit surfaces
This allows users to get r5g5b5a1 configs which currently (in Mesa) interact badly with EGL_EXT_present_opaque, and act as a good test case for the EGL implementation. Users can still get a 16-bit surface without alpha by using the "-o" flag. Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
This commit is contained in:
parent
e59eca5187
commit
8988c9436b
@ -198,7 +198,7 @@ init_egl(struct display *display, struct window *window)
|
||||
EGLBoolean ret;
|
||||
int r, g, b, a;
|
||||
|
||||
if (window->opaque || window->buffer_bpp == 16)
|
||||
if (window->opaque)
|
||||
config_attribs[9] = 0;
|
||||
|
||||
display->egl.dpy =
|
||||
|
Loading…
Reference in New Issue
Block a user