jpeg pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=ff97ffa7c4a9d81c9f1800fed8367424b64fe026
commit ff97ffa7c4a9d81c9f1800fed8367424b64fe026 Author: Jean-Philippe Andre <[email protected]> Date: Mon Mar 16 16:38:20 2015 +0900 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 --- src/lib/elm_glview.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_glview.c b/src/lib/elm_glview.c index ffb2c8c..b48d332 100644 --- a/src/lib/elm_glview.c +++ b/src/lib/elm_glview.c @@ -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; } --
