devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=485d2e37d8af406fa99b75bf3372bb0d59a07621

commit 485d2e37d8af406fa99b75bf3372bb0d59a07621
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Jul 25 14:46:12 2019 -0400

    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
---
 src/lib/elementary/elm_glview.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_glview.c b/src/lib/elementary/elm_glview.c
index 51e3cb6da6..a33921a4c9 100644
--- a/src/lib/elementary/elm_glview.c
+++ b/src/lib/elementary/elm_glview.c
@@ -272,7 +272,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);

-- 


Reply via email to