aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_glview_manygears.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-18 13:27:57 -0400
committerCedric BAIL <cedric.bail@free.fr>2019-03-20 12:36:52 -0700
commit4792bb8239e710b80b615d94d24a414581a66024 (patch)
tree0133169959dce360c4e5a5d21319b12be6eb58b8 /src/bin/elementary/test_glview_manygears.c
parentefl_ui_win: fix hw accel detection (diff)
downloadefl-4792bb8239e710b80b615d94d24a414581a66024.tar.gz
elm_test: move gl api creation to glview init function
this needs to happen when the gl context is current to avoid a billion errors and overall general failure Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8390
Diffstat (limited to 'src/bin/elementary/test_glview_manygears.c')
-rw-r--r--src/bin/elementary/test_glview_manygears.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/elementary/test_glview_manygears.c b/src/bin/elementary/test_glview_manygears.c
index 97e9e88050..8ddac2adf2 100644
--- a/src/bin/elementary/test_glview_manygears.c
+++ b/src/bin/elementary/test_glview_manygears.c
@@ -673,6 +673,7 @@ _init_gl(Evas_Object *obj)
{
GLData *gld = evas_object_data_get(obj, "gld");
if (!gld) return;
+ gld->glapi = elm_glview_gl_api_get(obj);
gears_init(gld);
}
@@ -892,7 +893,6 @@ test_glview_manygears(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
// Add animator for rendering
ani = ecore_animator_add(_anim, gl);
- gld->glapi = elm_glview_gl_api_get(gl);
evas_object_data_set(gl, "ani", ani);
evas_object_data_set(gl, "gld", gld);
evas_object_event_callback_add(gl, EVAS_CALLBACK_DEL, _del, gl);