Minor comment adjustments.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@464 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
rkrolib 2004-02-18 06:52:50 +00:00
parent 192d0ba74e
commit 819e75a0f3

View File

@ -273,6 +273,7 @@ void fgOpenWindow( SFG_Window* window, const char* title,
window->Window.VisualInfo = fgChooseVisual( ); window->Window.VisualInfo = fgChooseVisual( );
else else
{ {
/* XXX Why are menus double- and depth-buffered? */
unsigned int current_DisplayMode = fgState.DisplayMode ; unsigned int current_DisplayMode = fgState.DisplayMode ;
fgState.DisplayMode = GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH ; fgState.DisplayMode = GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH ;
window->Window.VisualInfo = fgChooseVisual( ); window->Window.VisualInfo = fgChooseVisual( );
@ -336,11 +337,8 @@ void fgOpenWindow( SFG_Window* window, const char* title,
* XXX A: Not appreciably, but it WILL make it easier to debug. * XXX A: Not appreciably, but it WILL make it easier to debug.
* XXX Try tracing old GLUT and try tracing freeglut. Old GLUT * XXX Try tracing old GLUT and try tracing freeglut. Old GLUT
* XXX turns off events that it doesn't need and is a whole lot * XXX turns off events that it doesn't need and is a whole lot
* XXX more pleasant to trace. (Hint: Think mouse-motion!) * XXX more pleasant to trace. (Think mouse-motion! Tons of
* XXX * XXX ``bonus'' GUI events stream in.)
* XXX It may make a difference in networked environments or on
* XXX some very slow systems, but I think that that is secondary
* XXX to making debugging easier.
*/ */
winAttr.event_mask = winAttr.event_mask =
StructureNotifyMask | SubstructureNotifyMask | ExposureMask | StructureNotifyMask | SubstructureNotifyMask | ExposureMask |
@ -395,7 +393,7 @@ void fgOpenWindow( SFG_Window* window, const char* title,
); );
} }
/* window->Window.Context = fgStructure.MenuContext->Context ; */ /* window->Window.Context = fgStructure.MenuContext->Context; */
window->Window.Context = glXCreateContext( window->Window.Context = glXCreateContext(
fgDisplay.Display, window->Window.VisualInfo, fgDisplay.Display, window->Window.VisualInfo,
NULL, fgState.ForceDirectContext | fgState.TryDirectContext NULL, fgState.ForceDirectContext | fgState.TryDirectContext