elm_glview: Fix unchecked return value

Small patch to check return value of evas_gl_make_current reported by
Coverity.

Fixes CID1401018
This commit is contained in:
Christopher Michael 2021-02-25 09:25:25 -05:00
parent 732e622a82
commit 0df61dc4fd
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{