wl drm output module must set comp gl state more pedantically

This commit is contained in:
Mike Blumenkrantz 2015-03-12 13:44:34 -04:00
parent 3f8d2d0596
commit e1394afdff
1 changed files with 5 additions and 5 deletions

View File

@ -94,19 +94,19 @@ e_modapi_init(E_Module *m)
comp->comp_type = E_PIXMAP_TYPE_WL;
}
if ((e_comp_gl_get()) &&
(e_comp_config_get()->engine == E_COMP_ENGINE_GL))
if (e_comp_config_get()->engine == E_COMP_ENGINE_GL)
{
comp->ee = ecore_evas_gl_drm_new(NULL, 0, 0, 0, 1, 1);
if (!comp->ee)
e_comp_gl_set(EINA_FALSE);
e_comp_gl_set(!!comp->ee);
}
/* fallback to framebuffer drm (non-accel) */
if (!comp->ee)
comp->ee = ecore_evas_drm_new(NULL, 0, 0, 0, 1, 1);
if (!comp->ee)
if (comp->ee)
e_comp_gl_set(EINA_FALSE);
else
{
fprintf(stderr, "Could not create ecore_evas_drm canvas");
return NULL;