- SetWindowLong(window->Window.Handle, GWL_STYLE,
- window->State.pWState.OldStyle & ~(WS_CAPTION | WS_THICKFRAME));
+ newStyle = window->State.pWState.OldStyle & ~(WS_CAPTION | WS_THICKFRAME);
+ if (fgState.DisplayMode & GLUT_STEREO)
+ {
+ /* stereo mode does not engage on nVidia stereo buffers. This kills child
+ windows, but we make the guess that those are rare for stereo windows. */
+ newStyle |= WS_POPUP;
+ }
+ SetWindowLong(window->Window.Handle, GWL_STYLE, newStyle);