Elementary: Patch from Alex Wu <zhiwen.wu@linux.intel.com> to fix

glview tests in Wayland:

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
This commit is contained in:
Christopher Michael 2012-08-31 09:27:22 +00:00
parent a470d49b22
commit 9ef8d4c096
2 changed files with 0 additions and 8 deletions

View 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);

View 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);