set comp_gl if we have the correct engines available

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-10-14 13:53:25 -04:00
parent 6a06b8d7f2
commit 5137277c93
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,11 @@
EAPI Eina_Bool
e_comp_wl_init(void)
{
/* set gl available if we have ecore_evas support */
if (ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_WAYLAND_EGL) ||
ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_OPENGL_DRM))
e_comp_gl_set(EINA_TRUE);
return EINA_FALSE;
}