summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2012-08-10 10:08:22 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-08-10 10:08:22 +0000
commite2957462c8530f3140e6e2e8f314e5411fc35bd1 (patch)
tree9dd500c5c562f9ba9a81507e0389adb4a4f9fe73 /legacy
parent27cd00c7f7f20e77014643eed7347463dbdfb5e8 (diff)
Evas (wayland_egl): We don't have a visualinfo structure for the
window at this point, so we cannot use it for comparison. Instead, check the requested depth. Also fix best_depth_get function to not return a hard-coded depth if a depth has been set already. SVN revision: 75082
Diffstat (limited to 'legacy')
-rw-r--r--legacy/evas/src/modules/engines/wayland_egl/evas_wl_main.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/legacy/evas/src/modules/engines/wayland_egl/evas_wl_main.c b/legacy/evas/src/modules/engines/wayland_egl/evas_wl_main.c
index c5f9721e9b..3b94cba402 100644
--- a/legacy/evas/src/modules/engines/wayland_egl/evas_wl_main.c
+++ b/legacy/evas/src/modules/engines/wayland_egl/evas_wl_main.c
@@ -39,7 +39,7 @@ eng_window_new(struct wl_display *disp, struct wl_surface *surface, int screen,
39 context_attrs[2] = EGL_NONE; 39 context_attrs[2] = EGL_NONE;
40 40
41#if defined(GLES_VARIETY_S3C6410) 41#if defined(GLES_VARIETY_S3C6410)
42 if (gw->visualinfo->depth == 16) // 16bpp 42 if (gw->depth == 16) // 16bpp
43 { 43 {
44 config_attrs[n++] = EGL_SURFACE_TYPE; 44 config_attrs[n++] = EGL_SURFACE_TYPE;
45 config_attrs[n++] = EGL_WINDOW_BIT; 45 config_attrs[n++] = EGL_WINDOW_BIT;
@@ -317,12 +317,5 @@ eng_best_depth_get(Evas_Engine_Info_Wayland_Egl *einfo)
317{ 317{
318 if (!einfo) return 0; 318 if (!einfo) return 0;
319 if (!einfo->info.display) return 0; 319 if (!einfo->info.display) return 0;
320 return 32; 320 return (einfo->info.depth ? einfo->info.depth : 32);
321 /* if (!_evas_gl_x11_vi) eng_best_visual_get(einfo); */
322 /* if (!_evas_gl_x11_vi) return 0; */
323 /* if (einfo->info.destination_alpha) */
324 /* { */
325 /* if (_evas_gl_x11_rgba_vi) return _evas_gl_x11_rgba_vi->depth; */
326 /* } */
327 /* return _evas_gl_x11_vi->depth; */
328} 321}