note in comments som get visual info from fbconfig stuff to mach
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 20 Apr 2013 00:13:38 +0000 (09:13 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 22 Apr 2013 15:06:47 +0000 (00:06 +0900)
depths. doesn't help though.

src/modules/evas/engines/gl_x11/evas_engine.c

index 204bf87..b042b18 100644 (file)
@@ -2190,6 +2190,13 @@ 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);
+                                     
                                      glXGetFBConfigAttrib(re->win->disp, configs[j],
                                                           GLX_BUFFER_SIZE, &val);
                                      if (val != (int) depth) continue;