forked from enlightenment/efl
GLView: Return false if the surface could not be created
Apps had no easy mean to check that their chosen configuration was actually working. @fix
This commit is contained in:
parent
b408b31537
commit
89d8f954de
|
@ -387,7 +387,11 @@ _elm_glview_mode_set(Eo *obj, Elm_Glview_Data *sd, Elm_GLView_Mode mode)
|
|||
sd->mode = mode;
|
||||
|
||||
_glview_update_surface(obj);
|
||||
elm_glview_changed_set(obj);
|
||||
if (!sd->surface)
|
||||
{
|
||||
ERR("Failed to create a surface with the requested configuration.");
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue