evas - gl engine - this fixes the breakages in new nvidia drivers

nvidia > 319 broke alpha windows. this code that was left commented
out fixes it. it didn't used to have any use.
This commit is contained in:
Carsten Haitzler 2013-11-09 10:40:17 +09:00
parent f82c77843e
commit 2da7295af2
1 changed files with 6 additions and 6 deletions

View File

@ -2345,12 +2345,12 @@ eng_image_native_set(void *data, void *image, void *native)
{
if (found == 0)
{
// XVisualInfo *vi;
//
// vi = glXGetVisualFromFBConfig(re->win->disp, configs[j]);
// if (!vi) continue;
// if (vi->depth != depth) continue;
// XFree(vi);
XVisualInfo *vi;
vi = glXGetVisualFromFBConfig(re->win->disp, configs[j]);
if (!vi) continue;
if (vi->depth != depth) continue;
XFree(vi);
glXGetFBConfigAttrib(re->win->disp, configs[j],
GLX_BUFFER_SIZE, &val);