Elementary: Patch from Alex Wu <zhiwen.wu@linux.intel.com> to fix glview tests in...
authorChristopher Michael <cpmichael1@comcast.net>
Fri, 31 Aug 2012 09:27:22 +0000 (09:27 +0000)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Thu, 6 Mar 2014 09:04:25 +0000 (10:04 +0100)
If the preferred engine set to "opengl_x11" and we actully run on
"wayland_egl" engine, the elm_win_add will eventully use "Software FB"
engine, and no chance to use the correct engine.

Don't set the preference but let the _elm_config to determine the right
engine.

SVN revision: 75921

src/bin/test_glview.c
src/bin/test_glview_simple.c

index 2bd6dc9..a97cc47 100644 (file)
@@ -577,11 +577,7 @@ test_glview(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    gldata_init(gld);
 
    // new window - do the usual and give it a name, title and delete handler
-   // Set the engine to opengl_x11
-   elm_config_preferred_engine_set("opengl_x11");
    win = elm_win_util_standard_add("glview", "GLView");
-   // Set preferred engine back to default from config
-   elm_config_preferred_engine_set(NULL);
 
    elm_win_autodel_set(win, EINA_TRUE);
 
index fc21ef4..d62b2c2 100644 (file)
@@ -238,11 +238,7 @@ test_glview_simple(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *eve
 
    if (!(gld = calloc(1, sizeof(GLData)))) return;
 
-   // Set the engine to opengl_x11
-   elm_config_preferred_engine_set("opengl_x11");
    win = elm_win_util_standard_add("glview simple", "GLView Simple");
-   // Set preferred engine back to default from config
-   elm_config_preferred_engine_set(NULL);
 
    elm_win_autodel_set(win, EINA_TRUE);