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:42:02 +0900
commit8087b811bcd9376ffe2d4e1f3708bb1fd20f956d (patch)
tree5afe1ec77b24c26bcad9de3aa450da9eb1610115
parentcbf97c1bc1c528ac0020f31392f5470059e4ea56 (diff)
GLView: Return false if the surface could not be createdelementary-1.12
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)
387 sd->mode = mode; 387 sd->mode = mode;
388 388
389 _glview_update_surface(obj); 389 _glview_update_surface(obj);
390 elm_glview_changed_set(obj); 390 if (!sd->surface)
391 {
392 ERR("Failed to create a surface with the requested configuration.");
393 return EINA_FALSE;
394 }
391 395
392 return EINA_TRUE; 396 return EINA_TRUE;
393} 397}