Applied in svn: 75921. Thanks :) dh -----Original Message----- From: Alex Wu [mailto:[email protected]] Sent: 31 August 2012 10:17 To: 'Enlightenment developer list' Cc: [email protected] Subject: [E-devel] [PATCH] elementary_test: Don't set preferred engine in GLView and GLViewSimple
>From 324a9f3a3f2cef06b5bed8efda8d895750f9af27 Mon Sep 17 00:00:00 2001 From: Alex Wu <[email protected]> Date: Fri, 31 Aug 2012 17:03:36 +0800 Subject: [PATCH] elementary_test: Don't set preferred engine in GLView and GLViewSimple. 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. --- trunk/elementary/src/bin/test_glview.c | 4 ---- trunk/elementary/src/bin/test_glview_simple.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/trunk/elementary/src/bin/test_glview.c b/trunk/elementary/src/bin/test_glview.c index 2bd6dc9..a97cc47 100644 --- a/trunk/elementary/src/bin/test_glview.c +++ b/trunk/elementary/src/bin/test_glview.c @@ -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); diff --git a/trunk/elementary/src/bin/test_glview_simple.c b/trunk/elementary/src/bin/test_glview_simple.c index fc21ef4..d62b2c2 100644 --- a/trunk/elementary/src/bin/test_glview_simple.c +++ b/trunk/elementary/src/bin/test_glview_simple.c @@ -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); ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
