diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2014-07-17 14:35:49 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2014-09-19 10:29:58 +0900 |
commit | 0d9005aa0ce3261d4bb7a00cd13dd78bffe31c08 (patch) | |
tree | 449c6f4f9b036c1dc3ded9c9945d4547ae3542b1 /src/modules | |
parent | f5e24c3bcf8ce594ad187e1bc447fc834ac8a252 (diff) | |
download | efl-0d9005aa0ce3261d4bb7a00cd13dd78bffe31c08.tar.gz |
Evas GLX: Simplify code
if (A) then B else B
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/evas/engines/gl_x11/evas_x_main.c | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/src/modules/evas/engines/gl_x11/evas_x_main.c b/src/modules/evas/engines/gl_x11/evas_x_main.c index e78a644930..2c28471929 100644 --- a/src/modules/evas/engines/gl_x11/evas_x_main.c +++ b/src/modules/evas/engines/gl_x11/evas_x_main.c @@ -45,7 +45,6 @@ eng_window_new(Evas_Engine_Info_GL_X11 *info, int major_version, minor_version; int num_config, n = 0; #endif - XVisualInfo *vi_use; const GLubyte *vendor, *renderer, *version; int blacklist = 0; @@ -69,24 +68,10 @@ eng_window_new(Evas_Engine_Info_GL_X11 *info, gw->info = info; gw->evas = e; - vi_use = _evas_gl_x11_vi; - if (gw->alpha) - { -#ifdef GL_GLES - if (_evas_gl_x11_rgba_vi) - { - vi_use = _evas_gl_x11_rgba_vi; - } -#else -//#ifdef NEWGL - if (_evas_gl_x11_rgba_vi) - { - vi_use = _evas_gl_x11_rgba_vi; - } -//#endif -#endif - } - gw->visualinfo = vi_use; + if (gw->alpha && _evas_gl_x11_rgba_vi) + gw->visualinfo = _evas_gl_x11_rgba_vi; + else + gw->visualinfo = _evas_gl_x11_vi; // EGL / GLES #ifdef GL_GLES |