X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_window.c;h=0d2705a235e93cc2032041e81f8674b8188aae5f;hb=de588727adb1064b78cdcd3653d1058e23d9d132;hp=58e95f49c81c8b383a4fad3022f70d68ac988a57;hpb=dbf924cc8664bbce41704d2af2df68627f2eab54;p=freeglut diff --git a/src/freeglut_window.c b/src/freeglut_window.c index 58e95f4..0d2705a 100644 --- a/src/freeglut_window.c +++ b/src/freeglut_window.c @@ -433,10 +433,12 @@ void fgOpenWindow( SFG_Window* window, const char* title, fgState.DisplayMode &= ~GLUT_DOUBLE; } - /* - * GLUT also checks for multi-sampling, but I don't see that - * anywhere else in FREEGLUT so I won't bother with it for the moment. - */ + if( fgState.DisplayMode & GLUT_MULTISAMPLE ) + { + fgState.DisplayMode &= ~GLUT_MULTISAMPLE ; + window->Window.VisualInfo = fgChooseVisual( ); + fgState.DisplayMode |= GLUT_MULTISAMPLE; + } } FREEGLUT_INTERNAL_ERROR_EXIT( window->Window.VisualInfo != NULL,