devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0df61dc4fda991a2b64c57a6c7825f76d6a887ba

commit 0df61dc4fda991a2b64c57a6c7825f76d6a887ba
Author: Christopher Michael <devilho...@comcast.net>
Date:   Thu Feb 25 09:25:25 2021 -0500

    elm_glview: Fix unchecked return value
    
    Small patch to check return value of evas_gl_make_current reported by
    Coverity.
    
    Fixes CID1401018
---
 src/lib/elementary/elm_glview.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_glview.c b/src/lib/elementary/elm_glview.c
index a33921a4c9..eaa01f0cf0 100644
--- a/src/lib/elementary/elm_glview.c
+++ b/src/lib/elementary/elm_glview.c
@@ -53,7 +53,8 @@ _glview_update_surface(Evas_Object *obj)
    ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
    if (!sd) return;
 
-   evas_gl_make_current(sd->evasgl, NULL, NULL);
+   if (!evas_gl_make_current(sd->evasgl, NULL, NULL))
+     return;
 
    if (sd->surface)
      {

-- 


Reply via email to