summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-03-16 16:38:20 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-03-16 16:41:32 +0900
commitda4ad821b50a9e754e8e420a9a3f6bfc3aec910b (patch)
tree3686731f5ea9590852c0333d686b65e47a4ebef8
parent513c1838238b20cec4907af320435ec81d69b963 (diff)
downloadelementary-da4ad821b50a9e754e8e420a9a3f6bfc3aec910b.tar.gz
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
-rw-r--r--src/lib/elm_glview.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elm_glview.c b/src/lib/elm_glview.c
index ffb2c8ca3..b48d33241 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;
}