forked from enlightenment/enlightenment
wl drm output module must set comp gl state more pedantically
This commit is contained in:
parent
3f8d2d0596
commit
e1394afdff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue