forked from enlightenment/efl
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:
parent
732e622a82
commit
0df61dc4fd
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue