forked from enlightenment/efl
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
This commit is contained in:
parent
27cd00c7f7
commit
e2957462c8
|
@ -39,7 +39,7 @@ eng_window_new(struct wl_display *disp, struct wl_surface *surface, int screen,
|
|||
context_attrs[2] = EGL_NONE;
|
||||
|
||||
#if defined(GLES_VARIETY_S3C6410)
|
||||
if (gw->visualinfo->depth == 16) // 16bpp
|
||||
if (gw->depth == 16) // 16bpp
|
||||
{
|
||||
config_attrs[n++] = EGL_SURFACE_TYPE;
|
||||
config_attrs[n++] = EGL_WINDOW_BIT;
|
||||
|
@ -317,12 +317,5 @@ eng_best_depth_get(Evas_Engine_Info_Wayland_Egl *einfo)
|
|||
{
|
||||
if (!einfo) return 0;
|
||||
if (!einfo->info.display) return 0;
|
||||
return 32;
|
||||
/* if (!_evas_gl_x11_vi) eng_best_visual_get(einfo); */
|
||||
/* if (!_evas_gl_x11_vi) return 0; */
|
||||
/* if (einfo->info.destination_alpha) */
|
||||
/* { */
|
||||
/* if (_evas_gl_x11_rgba_vi) return _evas_gl_x11_rgba_vi->depth; */
|
||||
/* } */
|
||||
/* return _evas_gl_x11_vi->depth; */
|
||||
return (einfo->info.depth ? einfo->info.depth : 32);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue