summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-02-23 16:54:18 +0000
committerBrian Paul <[email protected]>2005-02-23 16:54:18 +0000
commitba0fe1832e3573c7ec872ba9bfb1cf1773e384c6 (patch)
treeaac225138b9037435222c09794ab926d491b74e4 /src
parent540b260cbd39c103c045410b5312d4c57a569e33 (diff)
minor changes to aid debugging, and a new comment
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 82830b47172..5b17ae17b09 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -902,6 +902,12 @@ choose_x_overlay_visual( Display *dpy, int scr, GLboolean rgbFlag,
/**********************************************************************/
+/**
+ * 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 )
{
@@ -1521,7 +1527,8 @@ Fake_glXSwapBuffers( Display *dpy, GLXDrawable drawable )
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);
}
}
@@ -1765,7 +1772,7 @@ Fake_glXGetConfig( Display *dpy, XVisualInfo *visinfo,
int attrib, int *value )
{
XMesaVisual xmvis;
-
+ int k;
if (!dpy || !visinfo)
return GLX_BAD_ATTRIBUTE;
@@ -1785,7 +1792,8 @@ Fake_glXGetConfig( Display *dpy, XVisualInfo *visinfo,
}
}
- return get_config(xmvis, attrib, value, GL_FALSE);
+ k = get_config(xmvis, attrib, value, GL_FALSE);
+ return k;
}