aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_glview_manygears.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-18 14:03:17 -0400
committerCedric BAIL <cedric.bail@free.fr>2019-03-20 12:36:55 -0700
commit61e880e57c5cfec897959e64ed5731d5425d2699 (patch)
tree65e2c50de8d07f7795a9e6aa23ddb9b3bfc017b9 /src/bin/elementary/test_glview_manygears.c
parentelm_test: move gl api creation to glview init function (diff)
downloadefl-61e880e57c5cfec897959e64ed5731d5425d2699.tar.gz
elm_test: set accel for all glview tests
these otherwise require the user to set ELM_ACCEL or manually change the config which is cumbersome Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8392
Diffstat (limited to 'src/bin/elementary/test_glview_manygears.c')
-rw-r--r--src/bin/elementary/test_glview_manygears.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/elementary/test_glview_manygears.c b/src/bin/elementary/test_glview_manygears.c
index 8ddac2adf2..31084b78ec 100644
--- a/src/bin/elementary/test_glview_manygears.c
+++ b/src/bin/elementary/test_glview_manygears.c
@@ -842,10 +842,18 @@ test_glview_manygears(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
if (!(gld = calloc(1, sizeof(GLData)))) return;
gldata_init(gld);
+ // add a Z-depth buffer to the window and try to use GL
+ Eina_Stringshare *accel;
+ accel = eina_stringshare_add(elm_config_accel_preference_get());
+ elm_config_accel_preference_set("gl:depth");
+
// new window - do the usual and give it a name, title and delete handler
win = elm_win_util_standard_add("glview_manygears", "GLView Many Gears");
elm_win_autodel_set(win, EINA_TRUE);
+ // restore previous accel preference
+ elm_config_accel_preference_set(accel);
+ eina_stringshare_del(accel);
// add an image bg
bg = elm_bg_add(win);