diff options
author | Karl Schultz <k.w.schultz@comcast.net> | 2007-04-24 08:53:28 -0600 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-04-24 08:53:28 -0600 |
commit | 286faac68e7f8c51fd1afa801c75db33a427f8b6 (patch) | |
tree | de1314f7783aadf2d86faae2ae7187590ee2759b /src/glut | |
parent | 3b0bd0ce1747bf9145d4fcee83515d7a1e7a5f03 (diff) |
assorted fixes for Windows/VC8
Diffstat (limited to 'src/glut')
-rw-r--r-- | src/glut/glx/glut_win.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glut/glx/glut_win.c b/src/glut/glx/glut_win.c index 0f48e0ba33..18554b3e97 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); } |