note in comments som get visual info from fbconfig stuff to mach

depths. doesn't help though.
This commit is contained in:
Carsten Haitzler 2013-04-20 09:13:38 +09:00
parent 226517aa88
commit 36b1b06a60
1 changed files with 7 additions and 0 deletions

View 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;