/**********************************************************************/
+/**
+ * Helper used by glXChooseVisual and glXChooseFBConfig.
+ * The fbConfig parameter must be GL_FALSE for the former and GL_TRUE for
+ * the later.
+ * In either case, the attribute list is terminated with the value 'None'.
+ */
static XMesaVisual
choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
{
XMesaSwapBuffers(buffer);
}
else if (_mesa_getenv("MESA_DEBUG")) {
- _mesa_warning(NULL, "Mesa: glXSwapBuffers: invalid drawable\n");
+ _mesa_warning(NULL, "glXSwapBuffers: invalid drawable 0x%x\n",
+ (int) drawable);
}
}
int attrib, int *value )
{
XMesaVisual xmvis;
-
+ int k;
if (!dpy || !visinfo)
return GLX_BAD_ATTRIBUTE;
}
}
- return get_config(xmvis, attrib, value, GL_FALSE);
+ k = get_config(xmvis, attrib, value, GL_FALSE);
+ return k;
}