aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_glview.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.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.c')
-rw-r--r--src/bin/elementary/test_glview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/elementary/test_glview.c b/src/bin/elementary/test_glview.c
index edc116d62c..2ddb819561 100644
--- a/src/bin/elementary/test_glview.c
+++ b/src/bin/elementary/test_glview.c
@@ -428,6 +428,7 @@ _init_gl(Evas_Object *obj)
{
GLData *gld = evas_object_data_get(obj, "gld");
+ gld->glapi = elm_glview_gl_api_get(obj);
printf("GL_VERSION: %s\n", gld->glapi->glGetString(GL_VERSION));
fflush(stdout);
@@ -684,7 +685,6 @@ _test_glview_do(Evas_GL_Context_Version version)
// Animator and other vars
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);