summaryrefslogtreecommitdiff
path: root/src
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 /src
parent732e622a8205f2d21032d1c74417331309fc5bab (diff)
elm_glview: Fix unchecked return value
Small patch to check return value of evas_gl_make_current reported by Coverity. Fixes CID1401018
Diffstat (limited to 'src')
-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)
53 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 53 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
54 if (!sd) return; 54 if (!sd) return;
55 55
56 evas_gl_make_current(sd->evasgl, NULL, NULL); 56 if (!evas_gl_make_current(sd->evasgl, NULL, NULL))
57 return;
57 58
58 if (sd->surface) 59 if (sd->surface)
59 { 60 {