From: Mike Blumenkrantz Date: Thu, 25 Jul 2019 18:46:12 +0000 (-0400) Subject: elm/glview: fix glview to (again) return null if context creation fails X-Git-Tag: submit/tizen/20190805.083058~144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb8b5720679265a1702e0d6f9b3d80863af325b1;p=platform%2Fupstream%2Fefl.git elm/glview: fix glview to (again) return null if context creation fails Summary: engine internals have changed, so it's necessary to actually check whether the glview api is available now to determine whether the glview is viable @fix Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl_widgets Differential Revision: https://phab.enlightenment.org/D9397 --- diff --git a/src/lib/elementary/elm_glview.c b/src/lib/elementary/elm_glview.c index d69cc82..769dab3 100644 --- a/src/lib/elementary/elm_glview.c +++ b/src/lib/elementary/elm_glview.c @@ -273,7 +273,7 @@ _elm_glview_constructor(Eo *obj, Elm_Glview_Data *priv) priv->context = evas_gl_context_create(priv->evasgl, NULL); else priv->context = evas_gl_context_version_create(priv->evasgl, NULL, priv->gles_version); - if (!priv->context) + if ((!priv->context) || (!evas_gl_context_api_get(priv->evasgl, priv->context))) { ERR("Error Creating an Evas_GL Context."); ELM_SAFE_FREE(priv->config, evas_gl_config_free);