summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <devilhorns@comcast.net>2021-02-25 09:25:25 -0500
committerChristopher Michael <devilhorns@comcast.net>2021-02-25 09:25:25 -0500
commit0df61dc4fda991a2b64c57a6c7825f76d6a887ba (patch)
tree07cdc03f89a498bb557c9f810f48f973bac3fc95
parent732e622a8205f2d21032d1c74417331309fc5bab (diff)
downloadefl-0df61dc4fda991a2b64c57a6c7825f76d6a887ba.tar.gz
elm_glview: Fix unchecked return value
Small patch to check return value of evas_gl_make_current reported by Coverity. Fixes CID1401018
-rw-r--r--src/lib/elementary/elm_glview.c3
1 files changed, 2 insertions, 1 deletions
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)
{