summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-04-19 00:47:07 +0000
committerBrian Paul <[email protected]>2002-04-19 00:47:07 +0000
commit4c5f8a82072e7c88bec67fd1c971db28bd1e4462 (patch)
tree3ce63b79cdb0165758c3179e2536be864afd541d /src/mesa/drivers/x11
parent7322cccfb9a6b640743ca8cb527f7af922260cb8 (diff)
C++ fix
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 037104d0ef4..5e698ec39bc 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -1,4 +1,4 @@
-/* $Id: fakeglx.c,v 1.62 2002/04/02 23:52:53 brianp Exp $ */
+/* $Id: fakeglx.c,v 1.63 2002/04/19 00:47:07 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1795,7 +1795,11 @@ Fake_glXGetFBConfigAttrib( Display *dpy, GLXFBConfig config,
*value = False; /* XXX ??? */
break;
case GLX_X_VISUAL_TYPE:
+#if defined(__cplusplus) || defined(c_plusplus)
+ switch (v->vishandle->c_class) {
+#else
switch (v->vishandle->class) {
+#endif
case GrayScale:
*value = GLX_GRAY_SCALE;
break;