summaryrefslogtreecommitdiffstats
path: root/src/glut
diff options
context:
space:
mode:
authorKarl Schultz <[email protected]>2007-04-24 08:53:28 -0600
committerBrian <[email protected]>2007-04-24 08:53:28 -0600
commit286faac68e7f8c51fd1afa801c75db33a427f8b6 (patch)
treede1314f7783aadf2d86faae2ae7187590ee2759b /src/glut
parent3b0bd0ce1747bf9145d4fcee83515d7a1e7a5f03 (diff)
assorted fixes for Windows/VC8
Diffstat (limited to 'src/glut')
-rw-r--r--src/glut/glx/glut_win.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glut/glx/glut_win.c b/src/glut/glx/glut_win.c
index 0f48e0ba339..18554b3e97f 100644
--- a/src/glut/glx/glut_win.c
+++ b/src/glut/glx/glut_win.c
@@ -349,12 +349,18 @@ getVisualInfoRGB(unsigned int mode)
__glutScreen, list);
}
+#ifndef VisualIDMask
+#define VisualIDMask 0
+#endif
+
static XVisualInfo *
getVisualInfoID(int id)
{
XVisualInfo temp;
int count;
+#if !defined(_WIN32)
temp.visualid = id;
+#endif
return XGetVisualInfo(__glutDisplay, VisualIDMask, &temp, &count);
}