summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-02-13 15:04:17 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-04-20 13:00:27 -0500
commitd85e96006050427dce2ea4bc9e1677652e9a7842 (patch)
tree5d8cd3cd42c59630db0f49efbe0dd25ceb3fd36c /src/modules/evas/engines
parentdd90488b69b38462e8155ae170f25fa6fbf2db78 (diff)
wayland_egl: Fix color depth when not using alpha
Since we don't actually set the color depth at all we can end up with an RGB565 buffer. We don't ask for depths because apparently the N900 had a problem with this under X. I'm not aware of any efforts to bring wayland to the N900, so let's do this normally.
Diffstat (limited to 'src/modules/evas/engines')
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_wl_main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/evas/engines/wayland_egl/evas_wl_main.c b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
index 7b916cc20e..c8242d0f4e 100644
--- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c
+++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
@@ -46,16 +46,14 @@ eng_window_new(Evas_Engine_Info_Wayland *einfo, int w, int h, Render_Output_Swap
46 config_attrs[n++] = EGL_WINDOW_BIT; 46 config_attrs[n++] = EGL_WINDOW_BIT;
47 config_attrs[n++] = EGL_RENDERABLE_TYPE; 47 config_attrs[n++] = EGL_RENDERABLE_TYPE;
48 config_attrs[n++] = EGL_OPENGL_ES2_BIT; 48 config_attrs[n++] = EGL_OPENGL_ES2_BIT;
49# if 0 49
50 /* FIXME: n900 - omap3 sgx libs break here */
51 config_attrs[n++] = EGL_RED_SIZE; 50 config_attrs[n++] = EGL_RED_SIZE;
52 config_attrs[n++] = 1; 51 config_attrs[n++] = 1;
53 config_attrs[n++] = EGL_GREEN_SIZE; 52 config_attrs[n++] = EGL_GREEN_SIZE;
54 config_attrs[n++] = 1; 53 config_attrs[n++] = 1;
55 config_attrs[n++] = EGL_BLUE_SIZE; 54 config_attrs[n++] = EGL_BLUE_SIZE;
56 config_attrs[n++] = 1; 55 config_attrs[n++] = 1;
57 /* FIXME: end n900 breakage */ 56
58# endif
59 config_attrs[n++] = EGL_ALPHA_SIZE; 57 config_attrs[n++] = EGL_ALPHA_SIZE;
60 config_attrs[n++] = gw->alpha; 58 config_attrs[n++] = gw->alpha;
61 config_attrs[n++] = EGL_DEPTH_SIZE; 59 config_attrs[n++] = EGL_DEPTH_SIZE;