Revert "evas: GL_X11 context need to always be with alpha or it will fail to change."

This reverts commit 12eeebb544.
This commit is contained in:
Eduardo Lima (Etrunko) 2014-10-20 11:34:53 -02:00
parent 4fb4d7c77c
commit d64e3a27e5
3 changed files with 13 additions and 5 deletions

View File

@ -942,7 +942,6 @@ eng_setup(Evas *eo_e, void *in)
{
inc = 1;
eng_window_free(re->win);
re->win->gl_context->references++;
gl_wins--;
}
re->w = e->output.w;

View File

@ -94,7 +94,7 @@ struct _Evas_GL_X11_Window
Evas_GL_X11_Window *eng_window_new(Display *disp, Window win, int screen,
Visual *vis, Colormap cmap,
int depth, int w, int h, int indirect,
int rot);
int alpha, int rot);
void eng_window_free(Evas_GL_X11_Window *gw);
void eng_window_use(Evas_GL_X11_Window *gw);
void eng_window_unsurf(Evas_GL_X11_Window *gw);

View File

@ -32,6 +32,7 @@ eng_window_new(Display *disp,
int w,
int h,
int indirect,
int alpha,
int rot)
{
Evas_GL_X11_Window *gw;
@ -57,7 +58,7 @@ eng_window_new(Display *disp,
gw->visual = vis;
gw->colormap = cmap;
gw->depth = depth;
gw->alpha = 1;
gw->alpha = alpha;
gw->w = w;
gw->h = h;
gw->rot = rot;
@ -101,8 +102,16 @@ eng_window_new(Display *disp,
config_attrs[n++] = 1;
// FIXME: end n900 breakage
# endif
config_attrs[n++] = EGL_ALPHA_SIZE;
config_attrs[n++] = 1;
if (gw->alpha)
{
config_attrs[n++] = EGL_ALPHA_SIZE;
config_attrs[n++] = 1;
}
else
{
config_attrs[n++] = EGL_ALPHA_SIZE;
config_attrs[n++] = 0;
}
config_attrs[n++] = EGL_DEPTH_SIZE;
config_attrs[n++] = 0;
config_attrs[n++] = EGL_STENCIL_SIZE;