evas x: code refactoring.

keep simple code as possible.
This commit is contained in:
Hermet Park 2019-04-24 16:39:23 +09:00
parent 87d430df46
commit 3bd57c2c66
1 changed files with 2 additions and 10 deletions

View File

@ -972,16 +972,8 @@ try_again:
config_attrs[n++] = 1;
// FIXME: end n900 breakage
# endif
if (alpha)
{
config_attrs[i++] = EGL_ALPHA_SIZE;
config_attrs[i++] = 1;
}
else
{
config_attrs[i++] = EGL_ALPHA_SIZE;
config_attrs[i++] = 0;
}
config_attrs[i++] = EGL_ALPHA_SIZE;
config_attrs[i++] = (alpha ? 1 : 0);
if (depth_bits)
{